From f23ad1b3f9f6193f35f72104d690b21dc67d5c1f Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 06 七月 2020 12:35:25 +0800 Subject: [PATCH] 去掉了访问外网的异步 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs index 74055ac..1548f15 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs @@ -206,7 +206,7 @@ { HdlThreadLogic.Current.RunThread(() => { - this.DeleteGateway(strWayId, gatewayRow); + this.DeleteGateway(strWayId); }); }); }; @@ -238,7 +238,7 @@ /// </summary> /// <param name="strWayId"></param> /// <param name="row"></param> - private async void DeleteGateway(string strWayId, GatewayRowControl row) + private async void DeleteGateway(string strWayId) { //鎵撳紑杩涘害鏉� this.ShowProgressBar(); @@ -390,7 +390,7 @@ continue; } //鑾峰彇鏈�鏂扮増鏈� - var result = await HdlGatewayLogic.Current.GetGatewayAllNewVersion(way, ShowErrorMode.NO); + var result = HdlGatewayLogic.Current.GetGatewayAllNewVersion(way, ShowErrorMode.NO); if (result == null) { continue; @@ -399,7 +399,7 @@ { //鏈夋柊鐗堟湰 string gwid = way.GwId; - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (this.dicRowContr.ContainsKey(gwid) == true && this.dicRowContr[gwid] != null) { -- Gitblit v1.8.0