| | |
| | | /// 增加房间
|
| | | /// </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)
|
| | |
| | | room.Save();
|
| | | //备份
|
| | | HdlAutoBackupLogic.AddOrEditorFile(room.FileName);
|
| | | //刷新房间视图列表
|
| | | this.RefreshRoomListView();
|
| | | if (refreshRoomView == true)
|
| | | {
|
| | | //刷新房间视图列表
|
| | | this.RefreshRoomListView();
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <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);
|