From ec34983e291d1c85284472a27109d55891f9a6b5 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 07 八月 2020 16:20:16 +0800 Subject: [PATCH] 不是新代码,别 合并 --- ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs index dee8d57..c19b63e 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs @@ -352,11 +352,11 @@ Common.Config.Instance.Home.FloorDics.Remove(keys); if (Common.Config.Instance.Home.CurrentFloorId == keys) { - //濡傛灉鍒犻櫎鐨勬槸褰撳墠妤煎眰鐨勮瘽 Common.Config.Instance.Home.CurrentFloorId = string.Empty; - foreach (string floorId in Common.Config.Instance.Home.FloorDics.Keys) + var dicFloor = HdlRoomLogic.Current.GetFloorSortList(); + foreach (var floorId in dicFloor.Keys) { - //鎶婄涓�涓ゼ灞侷D缁欏畠 + //鎶婄涓�涓ゼ灞傝祴鍊肩粰褰撳墠妤煎眰 Common.Config.Instance.Home.CurrentFloorId = floorId; break; } @@ -406,7 +406,7 @@ this.AdjustContrlTableHeight(); } //鍒犻櫎妤煎眰鐨勮瘽,涓婚〉闇�瑕侀噸鏂板埛鏂� - UserView.UserPage.Instance.RefreshForm = true; + UserView.UserPage.Instance.RefreshAllForm = true; }); }; } @@ -464,7 +464,6 @@ Common.Config.Instance.Home.Save(); if (Common.Config.Instance.Home.CurrentFloorId == string.Empty) { - Common.Config.Instance.Home.CurrentFloorId = keys; //鍒涘缓绗竴涓柊鐨勬ゼ灞傜殑璇�,闇�瑕佸幓鍒锋柊涓婚〉宸﹁竟鐨勬埧闂村垪琛� HdlRoomLogic.Current.RefreshRoomListView(); } @@ -478,7 +477,7 @@ this.InitFrameTableByMode(); } //鍒涘缓鎴栬�呬慨鏀规ゼ灞傜殑璇�,涓婚〉闇�瑕侀噸鏂板埛鏂� - UserView.UserPage.Instance.RefreshForm = true; + UserView.UserPage.Instance.RefreshAllForm = true; } }); } @@ -619,7 +618,7 @@ this.AdjustContrlTableHeight(); } //鍒犻櫎鎴块棿鐨勮瘽,涓婚〉闇�瑕侀噸鏂板埛鏂� - UserView.UserPage.Instance.RefreshForm = true; + UserView.UserPage.Instance.RefreshAllForm = true; }); }; } @@ -694,6 +693,7 @@ var myHouse = HdlResidenceLogic.Current.GetHouseByFilePath(Common.Config.Instance.HomeFilePathList[index]); //鍒囨崲浣忓畢 Common.Config.Instance.HomeId = myHouse.Id; + Common.Config.Instance.Home = HdlResidenceLogic.Current.GetHouseByHouseId(myHouse.Id); Common.Global.CreateHomeDirectory(myHouse.Id); Common.Config.Instance.Save(); @@ -703,7 +703,7 @@ //鍒犻櫎浣忓畢 HdlResidenceLogic.Current.DeleteHouseMemmory(deleteId); - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { //鍏抽棴鐣岄潰 this.CloseForm(); -- Gitblit v1.8.0