| | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView(); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 房间内容显示区域 |
| | | /// </summary> |
| | |
| | | roomFloorChangeView.AddChidren(btnFoor); |
| | | #endregion |
| | | |
| | | |
| | | functionListView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64 + 52), |
| | |
| | | { |
| | | if (titleId == StringId.Lights) |
| | | { |
| | | if (function.functionCategory != FunctionType.Light) |
| | | if (function.functionCategory != FunctionCategory.Light) |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | if (titleId == StringId.AC) |
| | | { |
| | | if (function.functionCategory != FunctionType.AC) |
| | | if (function.functionCategory != FunctionCategory.AC) |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | if (titleId == StringId.Curtain) |
| | | { |
| | | if (function.functionCategory != FunctionType.Curtain) |
| | | if (function.functionCategory != FunctionCategory.Curtain) |
| | | { |
| | | continue; |
| | | } |
| | | } |
| | | functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) }); |
| | | |
| | | if (function.functionType == "RGB" || function.functionType == "Dimmer") |
| | | if (function.functionType == FunctionType.RGB || function.functionType == FunctionType.Dimmer) |
| | | { |
| | | var functionDiv = new FunctionControlZone(function) |
| | | { |