From 2029e64ec0491f7e511dc15bffaf821bfbabe2de Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 20 七月 2020 14:10:22 +0800 Subject: [PATCH] 上传一个很特别的新版本 --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs index d456bd7..b428f18 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs @@ -141,7 +141,7 @@ //鍋滄鎺ユ敹 this.realGateway.GwResDataAction -= this.AdjustGatewayResultData; - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { this.CloseForm(); }); @@ -175,6 +175,7 @@ device.CurrentGateWayId = this.realGateway.GwId; //灏咲eviceInfo鐨勫睘鎬ц缃埌涓诲睘鎬т腑 Common.LocalDevice.Current.SetDeviceInfoToMain(device, device); + Common.LocalDevice.Current.RefreshDeviceFunctionType(device, device, true); //娣诲姞璁惧鐨勭紦瀛� device.IsOnline = 1; @@ -222,7 +223,7 @@ System.Threading.Thread.Sleep(200); //鐩墠灏卞紕涓�涓� - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { var listDevice = new List<CommonDevice>(); for (int i = 0; i < this.listNewDevice.Count; i++) @@ -315,7 +316,7 @@ timeCount = 0; } } - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (btnRound != null) { @@ -468,7 +469,7 @@ { //鍝嶅簲瓒呮椂,璇烽噸鏂板叆缃� this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uResponseTimeoutsAndReAccessNetwork)); - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { //鍏抽棴鐣岄潰 this.CloseForm(); -- Gitblit v1.8.0