| | |
| | | |
| | | #region 区域变量 |
| | | Light light; |
| | | Button btnCollection_Out; |
| | | Button btnFunctionName_Out; |
| | | Button btnFromFloor_Out; |
| | | /// <summary> |
| | | /// 刷新显示信息 |
| | | /// </summary> |
| | | Action actionRefresh; |
| | | #endregion |
| | | |
| | | public RelayPage(Light func) |
| | | { |
| | | bodyView = this; |
| | | light = func; |
| | | } |
| | | |
| | | public void LoadPage() |
| | | } |
| | | /// <summary> |
| | | /// 加载界面 |
| | | /// </summary> |
| | | /// <param name="btnCollectionIcon">收藏按钮</param> |
| | | /// <param name="btnFunctionName">功能名称信息按钮</param> |
| | | /// <param name="btnFromFloor">功能楼层信息按钮</param> |
| | | public void LoadPage(Button btnCollectionIcon, Button btnFunctionNameOut, Button btnFromFloorOut) |
| | | { |
| | | btnCollection_Out = btnCollectionIcon; |
| | | btnFunctionName_Out = btnFunctionNameOut; |
| | | btnFromFloor_Out = btnFromFloorOut; |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.Lights), light); |
| | | //new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.Lights), light); |
| | | |
| | | controlView = new FrameLayout() |
| | | { |
| | |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(102), |
| | | Width = Application.GetRealWidth(168), |
| | | Width = Application.GetRealWidth(168-40), |
| | | Height = Application.GetRealHeight(288), |
| | | UnSelectedImagePath = "FunctionIcon/Light/RelayCloseIcon.png", |
| | | SelectedImagePath = "FunctionIcon/Light/RelayOpenIcon.png", |
| | | BackgroundColor = CSS_Color.PromptingColor2, |
| | | SelectedBackgroundColor= CSS_Color.AuxiliaryColor1, |
| | | Radius = (uint)Application.GetRealWidth(40), |
| | | IsSelected = light.state != 0 |
| | | }; |
| | | controlView.AddChidren(btnSwitchIcon); |
| | |
| | | |
| | | LoadEventList(); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView(light, actionRefresh); |
| | | |
| | | } |
| | | } |