黄学彪
2020-05-11 2e7e5f9af5b32cfe1fc3c6ba40bf7eb984bbd0a4
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlRoomLogic.cs
@@ -143,7 +143,7 @@
        {
            Application.RunOnMainThread(() =>
            {
                MainPage.ListRoomViewFrom.Instance?.ShowForm();
                MainPage.ListRoomViewFrom.Instance?.RefreshListRoom();
            });
        }
@@ -227,7 +227,8 @@
        /// 增加房间
        /// </summary>
        /// <param name="room">Room.</param>
        public void AddRoom(Room room)
        /// <param name="rorefreshRoomViewom">是否刷新房间视图列表界面</param>
        public void AddRoom(Room room, bool refreshRoomView = true)
        {
            if (Global.IsExistsByHomeId(room.FileName) == true
                || Config.Instance.Home.ListRooms.Contains(room.Id) == true)
@@ -242,8 +243,11 @@
            room.Save();
            //备份
            HdlAutoBackupLogic.AddOrEditorFile(room.FileName);
            //刷新房间视图列表
            this.RefreshRoomListView();
            if (refreshRoomView == true)
            {
                //刷新房间视图列表
                this.RefreshRoomListView();
            }
        }
        #endregion
@@ -578,6 +582,8 @@
            {
                //从原来的房间移除设备
                this.DeleteDevice(device);
                //设备改变房间的话,主页需要重新刷新
                UserView.UserPage.Instance.RefreshForm = true;
                return;
            }
            //房间是否修改
@@ -594,6 +600,8 @@
            {
                this.AddDevice(room, device, saveRealRoom);
            }
            //设备改变房间的话,主页需要重新刷新
            UserView.UserPage.Instance.RefreshForm = true;
        }
        /// <summary>
@@ -924,6 +932,10 @@
        /// <returns></returns>
        public List<Room> GetFloorSortRoom(string i_floorKeys, bool getShard = true)
        {
            if (i_floorKeys == null)
            {
                i_floorKeys = string.Empty;
            }
            Dictionary<string, List<string>> dicAllSort = new Dictionary<string, List<string>>();
            //读取房间顺序
            string fullName = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory, DirNameResourse.RoomSortFile);