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/CommonBase/Controls/GatewayFirmwareUpdateControl.cs | 24 ++++++++++-------------- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs index 5b8545f..0d15b69 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/GatewayFirmwareUpdateControl.cs @@ -112,14 +112,14 @@ //鎸囧畾鐨勮澶� var btnDevice = frameLayout.frameTable.AddLeftCaption("", 830); - btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Top); + //btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Top); btnDevice.X = Application.GetRealWidth(200); btnDevice.BackgroundColor = UserCenterColor.Current.Transparent; btnDevice.Text = HdlGatewayLogic.Current.GetGatewayName(upDatezbGateway); //鍥轰欢淇℃伅 this.btnProgress = frameLayout.frameTable.AddLeftCaption("", 830); - btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Bottom); + //btnDevice.Y = UserCenterLogic.GetControlChidrenYaxis(ControlCommonResourse.ListViewRowHeight, ControlCommonResourse.ListViewRowHalfHeight, UViewAlignment.Bottom); btnDevice.X = Application.GetRealWidth(200); btnProgress.BackgroundColor = UserCenterColor.Current.Transparent; if (this.gatewayFirmware != null) @@ -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