| | |
| | | #endregion |
| | | |
| | | #region |
| | | Room room; |
| | | static Room room; |
| | | #endregion |
| | | |
| | | public RoomPage(Room r) |
| | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | Action skipAction = () => |
| | | { |
| | | LoadEvent_SkipEditRoomPage(); |
| | | }; |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView,room.name).LoadTopView(); |
| | | |
| | | new TopViewDiv(bodyView,room.name).LoadTopView(room ,skipAction); |
| | | |
| | | functionListView = new VerticalScrolViewLayout() |
| | | { |
| | |
| | | |
| | | foreach (var function in room.functions) |
| | | { |
| | | if (function.functionCategory == FunctionCategory.Sensor) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) }); |
| | | |
| | | if (function.functionType == FunctionType.RGB || function.functionType == FunctionType.Dimmer) |