HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-11-04 c7698e163e43cea9e7f8ee45f8e3f91c9265cca4
ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs
@@ -19,7 +19,11 @@
        /// <summary>
        /// NextBtn
        /// </summary>
        public Button NextBtn;
        public Button SelectBtn;
        /// <summary>
        /// ClickButton
        /// </summary>
        public Button ClickButton;
        /// <summary>
        /// DeviceInfoWithZoneRow
        /// </summary>
@@ -68,16 +72,16 @@
            };
            AddChidren(ZoneButton);
            NextBtn = new Button
            SelectBtn = new Button
            {
                X = Application.GetRealWidth(910),
                Width = Application.GetMinRealAverage(100),
                Height = Application.GetMinRealAverage(100),
                Gravity = Gravity.CenterVertical,
                SelectedImagePath = "Item/Next.png",
                UnSelectedImagePath = "Item/NextSelected.png"
                UnSelectedImagePath = "Scene/Selected.png",
                Visible = false
            };
            AddChidren(NextBtn);
            AddChidren(SelectBtn);
            var line = new Button()
            {
@@ -88,6 +92,11 @@
                BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2,
            };
            AddChidren(line);
            ClickButton = new Button
            {
            };
            AddChidren(ClickButton);
        }
        /// <summary>
@@ -96,7 +105,7 @@
        /// <param name="title"></param>
        public void SetName(string title)
        {
            ZoneButton.Text = title;
            NameButton.Text = title;
        }
        
@@ -106,7 +115,7 @@
        /// <param name="title"></param>
        public void SetZone(string title)
        {
            NameButton.Text = title;
            ZoneButton.Text = title;
        }
        /// <summary>
@@ -117,7 +126,15 @@
        {
            IconButton.UnSelectedImagePath = imagePath;
        }
        /// <summary>
        /// SetStatu
        /// </summary>
        /// <param name="statu"></param>
        public void SetStatu(bool statu)
        {
            SelectBtn.Visible = statu;
        }
    }
}