From 58beee272e47fdbf814e0c8fe625e09c5b844d4d Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 23 十二月 2020 13:38:27 +0800 Subject: [PATCH] Merge branch 'NewFilePath' into CJL --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs | 45 ++++----------------------------------------- 1 files changed, 4 insertions(+), 41 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs old mode 100755 new mode 100644 index 331e653..f70d227 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs @@ -186,47 +186,10 @@ } DB_ResidenceData.Instance.CurrentRegion = homeTemp; DB_ResidenceData.Instance.SaveResidenceData(); - var waitPage = new Loading(); - bodyView.AddChidren(waitPage); - waitPage.Start(Language.StringByID(StringId.PleaseWait)); - new System.Threading.Thread(() => - { - try - { - DB_ResidenceData.Instance.EixtAccount(); - //鍒锋柊涓�娆′綇瀹呯綉鍏� - new HttpServerRequest().GetHomeGatewayList(); - - Application.RunOnMainThread(() => - { - btnCurResidenceName.Text = DB_ResidenceData.Instance.CurrentRegion.Name; - //閲嶇疆缃戝叧鐘舵�� - DriverLayer.Control.Ins.GatewayOnline = false; - }); - - //鎼滅储缃戝叧 - DriverLayer.Control.Ins.SearchLoaclGateway(); - } - catch (Exception ex) - { - Application.RunOnMainThread(() => - { - new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.OperationFailed), - Language.StringByID(StringId.Close)).Show(); - }); - MainPage.Log(ex.Message); - } - finally - { - Application.RunOnMainThread(() => - { - waitPage.Hide(); - waitPage.RemoveFromParent(); - MainPage.InitializationData(); - }); - } - }) - { IsBackground = true }.Start(); + btnCurResidenceName.Text = DB_ResidenceData.Instance.CurrentRegion.Name; + DB_ResidenceData.Instance.EixtAccount(); + //鍒锋柊浣忓畢鏁版嵁 + Common.ApiUtlis.Ins.DownloadData(); } #endregion -- Gitblit v1.8.0