From ecba45c93391066bc30c7bd602c3a7683fbb99a7 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期五, 31 七月 2020 10:56:12 +0800 Subject: [PATCH] 临时备份 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs index fb1d954..58fdae5 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs @@ -330,7 +330,7 @@ private void CheckNewVersion(PicViewControl btnNewVersion) { //鑾峰彇缃戝叧鐗堟湰淇℃伅 - var result = HdlGatewayLogic.Current.GetGatewayAllNewVersion(this.zbGateway, ShowErrorMode.NO); + var result = HdlGatewayLogic.Current.GetGatewayAllNewVersion(this.zbGateway); if (result == null) { return; @@ -380,9 +380,9 @@ /// </summary> /// <param name="gatewayId"></param> /// <param name="online"></param> - private void DoSwitchGateway() + private async void DoSwitchGateway() { - var result = HdlGatewayLogic.Current.DoSwitchGateway(zbGateway.GwId); + var result = await HdlGatewayLogic.Current.DoSwitchGateway(zbGateway.GwId); if (result == false) { return; @@ -425,13 +425,13 @@ /// <param name="row"></param> private void DeleteGateway(string strWayId) { - HdlThreadLogic.Current.RunThread(() => + HdlThreadLogic.Current.RunThread(async () => { //鎵撳紑杩涘害鏉� this.ShowProgressBar(); //鍒犻櫎浜戠缃戝叧 - bool result = HdlGatewayLogic.Current.DeleteGateway(strWayId); + bool result = await HdlGatewayLogic.Current.DeleteGateway(strWayId); //鍏抽棴杩涘害鏉� this.CloseProgressBar(); if (result == false) -- Gitblit v1.8.0