| | |
| | | }; |
| | | roomView.AddChidren(btnRoomName); |
| | | |
| | | //如果房间为空,代表管理无分配区域 |
| | | if (mRoom != null) |
| | | { |
| | | //显示房间名 |
| | | btnRoomName.Text = mRoom.roomName; |
| | | roomFunctionList = mRoom.GetRoomFunctions(false); |
| | | roomId = mRoom.roomId; |
| | | } |
| | | else |
| | | { |
| | | //显示无区域功能 |
| | | btnRoomName.TextID = StringId.NoAreaFunction; |
| | | roomFunctionList = unallocatedList; |
| | | roomId = null; |
| | | } |
| | | |
| | | |
| | | var btnFunctionCount = new Button() |
| | | { |
| | |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | roomView.AddChidren(btnRight); |
| | | //分割线 |
| | | var lineView = new LineView(roomView.Height - Application.GetRealHeight(1)); |
| | | roomView.AddChidren(lineView); |
| | | |
| | | //如果房间为空,代表管理无分配区域 |
| | | if (mRoom != null) |
| | | { |
| | | //显示房间名 |
| | | btnRoomName.Text = mRoom.roomName; |
| | | roomFunctionList = mRoom.GetRoomFunctions(false); |
| | | roomId = mRoom.roomId; |
| | | //添加分割线 |
| | | var lineView = new LineView(roomView.Height - Application.GetRealHeight(1)); |
| | | roomView.AddChidren(lineView); |
| | | } |
| | | else |
| | | { |
| | | //显示无区域功能 |
| | | btnRoomName.TextID = StringId.NoAreaFunction; |
| | | roomFunctionList = unallocatedList; |
| | | roomId = null; |
| | | } |
| | | |
| | | //删除按钮 |
| | | var deleteBtn = new Button() |
| | | { |