wxr
2020-03-13 171bf03f3664226eeff2b20ee9bd2e914b63a17d
HDL_ON/UI/UI2/FuntionControlView/Light/RelayPage.cs
@@ -38,18 +38,34 @@
        #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()
            {
@@ -103,10 +119,11 @@
            {
                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);
@@ -125,6 +142,7 @@
            LoadEventList();
            new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView(light, actionRefresh);
        }
    }