| | |
| | | }; |
| | | dispalyView.AddChidren(contentView); |
| | | |
| | | if (DB_ResidenceData.rooms.Count < 2) |
| | | if (DB_ResidenceData.Rooms.Count < 2) |
| | | { |
| | | } |
| | | else if (DB_ResidenceData.rooms.Count < 3) |
| | | else if (DB_ResidenceData.Rooms.Count < 3) |
| | | { |
| | | dispalyView = new FrameLayout() |
| | | { |
| | |
| | | contentView.Height = Application.GetRealHeight(45 * 3); |
| | | dispalyView.AddChidren(contentView); |
| | | } |
| | | else if (DB_ResidenceData.rooms.Count < 4) |
| | | else if (DB_ResidenceData.Rooms.Count < 4) |
| | | { |
| | | dispalyView = new FrameLayout() |
| | | { |
| | |
| | | |
| | | |
| | | List<Room> roomList = new List<Room>(); |
| | | roomList.Add(new Room() { sid = "", name = Language.StringByID(StringId.All) }); |
| | | roomList.AddRange(DB_ResidenceData.rooms); |
| | | roomList.Add(new Room() { uid = "", roomName = Language.StringByID(StringId.All) }); |
| | | roomList.AddRange(DB_ResidenceData.Rooms); |
| | | foreach (var tempRoom in roomList) |
| | | { |
| | | var roomName = tempRoom.name; |
| | | var roomName = tempRoom.roomName; |
| | | if (roomName != Language.StringByID(StringId.All)) |
| | | { |
| | | contentView.AddChidren(new Button() |
| | |
| | | var showList = new List<Function>(); |
| | | foreach (var sf in functionList) |
| | | { |
| | | if(sf.roomIds.Contains(tempRoom.sid)) |
| | | if(sf.roomIds.Contains(tempRoom.uid)) |
| | | { |
| | | showList.Add(sf); |
| | | } |