From e5f993f52e09eb46878baced83bb8492f147d41c Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期一, 04 十一月 2019 17:58:40 +0800 Subject: [PATCH] 2019-11-04-1 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs index 501dc8a..943dab1 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessGatewaySearchForm.cs @@ -59,7 +59,7 @@ //鏅鸿兘缃戝叧姝e湪閰嶇疆缃戠粶涓� var btnMsg1 = new NormalViewControl(bodyFrameLayout.Width, false); - btnMsg1.TextID = R.MyInternationalizationString.uGatewaySetting; + btnMsg1.TextID = R.MyInternationalizationString.uGatewaySearching; btnMsg1.Y = Application.GetRealHeight(1036); btnMsg1.TextAlignment = TextAlignment.Center; bodyFrameLayout.AddChidren(btnMsg1); @@ -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) { @@ -251,7 +250,7 @@ //缃戝叧缁戝畾鍦ㄥ綋鍓嶈处鍙蜂笅鐨勫叾浠栦綇瀹呴噷\r\n璇疯В闄ょ粦瀹氬悗鍐嶈瘯(IP鍦板潃) if (result == 0) { continue; } //鎴戣寰楄繖閲岄渶瑕佽幏鍙栦竴涓嬫柊缃戝叧鐨勮澶囧垪琛� - await Common.LocalDevice.Current.SetDeviceToMemmoryByGateway(realWay); + Common.LocalDevice.Current.SetDeviceToMemmoryByGateway(realWay); Application.RunOnMainThread(() => { @@ -260,8 +259,8 @@ //鎼滅储寰楀埌鏃犵嚎缃戝叧 if (mode != GatewayBindMode.Binded) { - var form = new GatewayInfoAddForm(); - this.AddFromAndRemoveNowForm(form, realWay); + //var form = new GatewayInfoAddForm(); + //this.AddFromAndRemoveNowForm(form, realWay); } } }); @@ -273,8 +272,7 @@ } } } - }) - { IsBackground = true }.Start(); + }); } #endregion -- Gitblit v1.8.0