| | |
| | | public void LoadPage() |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddFunction)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddFunction)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | |
| | | #region 显示的功能类型切换区域 |
| | | showdFunctionTypeRow = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(62), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealHeight(53), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(showdFunctionTypeRow); |
| | |
| | | showdFunctionTypeRow.AddChidren(btnFloor); |
| | | LoadDialog_ChangeFloor(); |
| | | |
| | | |
| | | showdFunctionTypeRow.AddChidren(new Button() |
| | | { |
| | | Height = 1, |
| | | Y = Application.GetRealHeight(52), |
| | | BackgroundColor = CSS_Color.DividingLineColor |
| | | }); |
| | | |
| | | |
| | | #endregion |
| | | |
| | | functionListView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = showdFunctionTypeRow.Bottom, |
| | | Height = Application.GetRealHeight(530 - 100), |
| | | Height = Application.GetRealHeight(530-60-10), |
| | | BackgroundColor = CSS_Color.BackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(functionListView); |
| | |
| | | tempStatus.Add(new SecurityOutputStatus() { key = FunctionAttributeKey.OnOff, value = "on" }); |
| | | allocatedList.Add(new SecurityOutput |
| | | { |
| | | target_type = "0", |
| | | target_type = "1", |
| | | sid = function.sid, |
| | | status = tempStatus, |
| | | name = function.name, |
| | |
| | | tempStatus.Add(new SecurityOutputStatus() { key = "value", value = "0" }); |
| | | allocatedList.Add(new SecurityOutput |
| | | { |
| | | target_type = "1", |
| | | target_type = "2", |
| | | sid = scene.sid, |
| | | status = tempStatus, |
| | | name = scene.name, |