From 2bc230cf2e7a7329c2329b07307a47b059835bbc Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期五, 18 十月 2019 10:20:52 +0800 Subject: [PATCH] 2019-10-18-1 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs index 501dc8a..18a1bbc 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs @@ -145,7 +145,7 @@ frame.AddChidren(btnRound); animateThread = true; - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { int index = 1; int timeCount = 0; @@ -176,8 +176,7 @@ } }); } - }) - { IsBackground = true }.Start(); + }); } #endregion @@ -189,7 +188,7 @@ /// </summary> private void CheckZbGatewayAndSetRow() { - new System.Threading.Thread(async () => + HdlThreadLogic.Current.RunThread(async () => { while (animateThread == true && this.Parent != null) { @@ -273,8 +272,7 @@ } } } - }) - { IsBackground = true }.Start(); + }); } #endregion -- Gitblit v1.8.0