| | |
| | | |
| | | public FrameLayout itemView; |
| | | |
| | | static RoomManagement roomManagement; |
| | | public static RoomManagement Instance |
| | | { |
| | | get |
| | | { |
| | | if (roomManagement == null) |
| | | { |
| | | roomManagement = new RoomManagement { }; |
| | | } |
| | | return roomManagement; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | public void Show() |
| | | { |
| | | RemoveAll(); |
| | | |
| | | AddTop(); |
| | | |
| | | AddBodyView(Config.Instance.Home.CurrentFloorId); |
| | |
| | | var room = roomList[i]; |
| | | var roomView = new RoomMainView(xx, yy); |
| | | itemView.AddChidren(roomView); |
| | | roomView.Init(); |
| | | roomView.Init(this,room); |
| | | roomView.SetRoomName(room.Name); |
| | | roomView.SetRoomIcon(room.BackgroundImage); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 房间管理界面 |
| | | /// </summary> |
| | | void RoomPage() |
| | | public RoomManagement() |
| | | { |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; |
| | | roomManagement = this; |
| | | } |
| | | |
| | | /// <summary> |