From 41f9c8837b0551c68f8fd798c06951fa716b7ab8 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 11 一月 2021 14:05:29 +0800 Subject: [PATCH] Merge branch 'NewFilePath' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into NewFilePath --- 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 index 331e653..f70d227 100644 --- 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