| | |
| | | //删除当前楼层的话,需要去刷新主页左边的房间列表
|
| | | HdlRoomLogic.Current.RefreshRoomListView();
|
| | | }
|
| | | var uploadRoom = false;
|
| | | var listDeleteId = new List<string>();
|
| | | var listAllRoom = HdlRoomLogic.Current.GetAllListRooms();
|
| | | for (int i = 0; i < listAllRoom.Count; i++)
|
| | |
| | | if (listAllRoom[i].FloorId == keys)
|
| | | {
|
| | | listDeleteId.Add(listAllRoom[i].Id);
|
| | | }
|
| | | if (listAllRoom[i].ListDevice.Count > 0)
|
| | | {
|
| | | //需要上传空间区域
|
| | | uploadRoom = true;
|
| | | }
|
| | | }
|
| | | //删除房间
|
| | |
| | | frameRow.RemoveFromParent();
|
| | | //调整桌布高度
|
| | | this.AdjustContrlTableHeight();
|
| | | }
|
| | | if (uploadRoom == true)
|
| | | {
|
| | | //上传空间区域信息
|
| | | HdlRoomLogic.Current.SetRoomInfoToGateway();
|
| | | }
|
| | | //删除楼层的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshAllForm = true;
|
| | |
| | | //调整桌布高度
|
| | | this.AdjustContrlTableHeight();
|
| | | }
|
| | | if (room.ListDevice.Count > 0)
|
| | | {
|
| | | //上传空间区域信息
|
| | | HdlRoomLogic.Current.SetRoomInfoToGateway();
|
| | | }
|
| | | //删除房间的话,主页需要重新刷新
|
| | | UserView.UserPage.Instance.RefreshAllForm = true;
|
| | | });
|