From b7b3e92bed9c4553e30e2901a1877f088a5f8823 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 04 十一月 2019 17:20:52 +0800 Subject: [PATCH] 2019.11.4 --- ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs index 2da32e0..2edd7e7 100644 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs +++ b/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; + } } } -- Gitblit v1.8.0