| | |
| | | }; |
| | | dispalyView.AddChidren(contentView); |
| | | |
| | | if (DB_ResidenceData.residenceData.Rooms.Count < 2) |
| | | if (SpatialInfo.CurrentSpatial.RoomList.Count < 2) |
| | | { |
| | | } |
| | | else if (DB_ResidenceData.residenceData.Rooms.Count < 3) |
| | | else if (SpatialInfo.CurrentSpatial.RoomList.Count < 3) |
| | | { |
| | | dispalyView = new FrameLayout() |
| | | { |
| | |
| | | contentView.Height = Application.GetRealHeight(45 * 3); |
| | | dispalyView.AddChidren(contentView); |
| | | } |
| | | else if (DB_ResidenceData.residenceData.Rooms.Count < 4) |
| | | else if (SpatialInfo.CurrentSpatial.RoomList.Count < 4) |
| | | { |
| | | dispalyView = new FrameLayout() |
| | | { |
| | |
| | | |
| | | List<Room> roomList = new List<Room>(); |
| | | roomList.Add(new Room() { roomName = Language.StringByID(StringId.All) }); |
| | | roomList.AddRange(DB_ResidenceData.residenceData.Rooms); |
| | | roomList.AddRange(SpatialInfo.CurrentSpatial.RoomList); |
| | | foreach (var tempRoom in roomList) |
| | | { |
| | | var roomName = tempRoom.roomName; |