From 2ed75b8b337048e5d75e6d9ec8307633134f02fd Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 10 十月 2019 11:33:04 +0800 Subject: [PATCH] 个人中心添加楼层和创建房间,实装二级验证 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs index cb7d3cf..f751770 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WiredGatewaySearchForm.cs @@ -131,7 +131,7 @@ //寮�鍚�掕鏃剁嚎绋� this.StartTimeCountThread(textValue); - new System.Threading.Thread(async () => + HdlThreadLogic.Current.RunThread(async () => { while (this.IsThreadAction) { @@ -145,8 +145,7 @@ //妫�娴嬫悳绱㈠埌鐨勭綉鍏筹紝鐒跺悗娣诲姞鍒扮敾闈㈢殑琛岄噷闈� await this.CheckZbGatewayAndSetRow(); } - }) - { IsBackground = true }.Start(); + }); } /// <summary> @@ -158,7 +157,7 @@ //鎼滅储鏃堕棿 this.searchTime = 60; - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { while (this.IsThreadAction) { @@ -187,8 +186,7 @@ btnStop.Text = textValue; } }); - }) - { IsBackground = true }.Start(); + }); } #endregion -- Gitblit v1.8.0