From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 19 十一月 2020 10:23:45 +0800 Subject: [PATCH] Evoyo.Home1.1.0120111601_Release --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs index cb8e6e2..0b1c22c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs @@ -111,7 +111,7 @@ /// <summary> /// 鍒濆鍖栧湴鍖哄垪琛� /// </summary> - private async void InitAreaList() + private void InitAreaList() { if (listAreaCode == null) { @@ -121,10 +121,10 @@ //鑾峰彇鍏ㄩ儴鐨勫湴鍖轰唬鐮佸垪琛� var Pra = new { Common.CommonPage.RequestVersion }; - string result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetAreaCode", false, Pra); + string result = UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetAreaCode", false, Pra); //鍏抽棴杩涘害鏉� ProgressBar.Close(); - if (result == null) + if (string.IsNullOrEmpty(result) == true) { return; } @@ -140,7 +140,7 @@ return obj1.First.CompareTo(obj2.First); }); } - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { //娣诲姞鍏ㄩ儴鏄庣粏琛� this.AddAllDetailRow(listAreaCode); @@ -253,7 +253,7 @@ listData.Add(listAreaCode[i]); } } - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { //娣诲姞鍏ㄩ儴鏄庣粏琛� this.AddAllDetailRow(listData); -- Gitblit v1.8.0