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/CommonBase/Controls/GatewayFirmwareUpdateControl.cs | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs index cbaec60..0d15b69 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs @@ -858,7 +858,7 @@ /// </summary> private void ShowFinishMsg() { - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { //鐘舵�佸彉鏇� this.IsFinishUpdate = true; @@ -888,8 +888,7 @@ this.btnUpdateButton.SetNotClickStatu(); }); - }) - { IsBackground = true }.Start(); + }); } #endregion @@ -1022,7 +1021,7 @@ private void StartDownLoadTimeOutThread() { this.downLoadTimeOutCount = 30; - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { while (true) { @@ -1051,8 +1050,7 @@ break; } } - }) - { IsBackground = true }.Start(); + }); } /// <summary> @@ -1086,7 +1084,7 @@ //瓒呮椂鏃堕棿璁剧疆 this.updateTimeOutCount = 60; - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { while (this.IsFinishUpdate == false) { @@ -1124,8 +1122,7 @@ //璁剧疆閿欒淇℃伅 this.ShowErrorMsg(this.errorMsg); } - }) - { IsBackground = true }.Start(); + }); } /// <summary> @@ -1173,7 +1170,7 @@ /// <returns></returns> private void StartGetGatewayVersionThread() { - new System.Threading.Thread(async () => + HdlThreadLogic.Current.RunThread(async () => { //褰撳墠缃戝叧鐨勭増鏈� var oldVersion = HdlGatewayLogic.Current.GetGwInfoAttribute(this.upDatezbGateway, "LinuxFWVersion"); @@ -1208,8 +1205,7 @@ } //宸茬粡鑳藉鑾峰彇鏁版嵁 this.ShowFinishMsg(); - }) - { IsBackground = true }.Start(); + }); } #endregion -- Gitblit v1.8.0