| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = DB_ResidenceData.residenceData.CurFoor, |
| | | Text = DB_ResidenceData.Instance.CurFloor.roomName, |
| | | }; |
| | | roomFloorChangeView.AddChidren(btnFloor); |
| | | #endregion |
| | |
| | | |
| | | if (titleId == StringId.Lights) |
| | | { |
| | | functionList.AddRange(DB_ResidenceData.functionList.lights); |
| | | functionList.AddRange(FunctionList.List.lights); |
| | | } |
| | | else if (titleId == StringId.AC) |
| | | { |
| | | functionList.AddRange(DB_ResidenceData.functionList.aCs); |
| | | functionList.AddRange(FunctionList.List.aCs); |
| | | } |
| | | else if (titleId == StringId.Curtain) |
| | | { |
| | | functionList.AddRange(DB_ResidenceData.functionList.curtains); |
| | | functionList.AddRange(FunctionList.List.curtains); |
| | | } |
| | | else if (titleId == StringId.FloorHeating) |
| | | { |
| | | functionList.AddRange(DB_ResidenceData.functionList.floorHeatings); |
| | | functionList.AddRange(FunctionList.List.floorHeatings); |
| | | } |
| | | else if (titleId == StringId.Electric) |
| | | { |
| | | functionList.AddRange(DB_ResidenceData.functionList.electricals); |
| | | functionList.AddRange(FunctionList.List.electricals); |
| | | } |
| | | else if (titleId == StringId.EnvironmentalScience) |
| | | { |
| | | functionList.AddRange(DB_ResidenceData.functionList.sensorsEnvironmentalScience); |
| | | functionList.AddRange(FunctionList.List.sensorsEnvironmentalScience); |
| | | } |
| | | functionList.OrderByDescending(o => o.usageCount).ToList(); |
| | | |
| | |
| | | }; |
| | | dispalyView.AddChidren(contentView); |
| | | |
| | | if (DB_ResidenceData.Rooms.Count < 2) |
| | | if (SpatialInfo.CurrentSpatial.RoomList.Count < 2) |
| | | { |
| | | } |
| | | else if (DB_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.Rooms.Count < 4) |
| | | else if (SpatialInfo.CurrentSpatial.RoomList.Count < 4) |
| | | { |
| | | dispalyView = new FrameLayout() |
| | | { |
| | |
| | | |
| | | |
| | | List<Room> roomList = new List<Room>(); |
| | | roomList.Add(new Room() { uid = "", roomName = Language.StringByID(StringId.All) }); |
| | | roomList.AddRange(DB_ResidenceData.Rooms); |
| | | roomList.Add(new Room() { roomName = Language.StringByID(StringId.All) }); |
| | | roomList.AddRange(SpatialInfo.CurrentSpatial.RoomList); |
| | | foreach (var tempRoom in roomList) |
| | | { |
| | | var roomName = tempRoom.roomName; |
| | |
| | | var showList = new List<Function>(); |
| | | foreach (var sf in functionList) |
| | | { |
| | | if(sf.roomIds.Contains(tempRoom.uid)) |
| | | if(sf.roomIds.Contains(tempRoom.roomId)) |
| | | { |
| | | showList.Add(sf); |
| | | } |