From 34e965100d635346e2d4cd6e6013bdaed66b3004 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 02 一月 2020 19:52:13 +0800
Subject: [PATCH] 2019.1.2-3
---
ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs | 51 ++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 40 insertions(+), 11 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs
index 2da32e0..7bfe15c 100644
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs
@@ -19,7 +19,15 @@
/// <summary>
/// NextBtn
/// </summary>
- public Button NextBtn;
+ public Button SelectBtn;
+ /// <summary>
+ /// ClickButton
+ /// </summary>
+ public Button ClickButton;
+ /// <summary>
+ /// line
+ /// </summary>
+ Button line;
/// <summary>
/// DeviceInfoWithZoneRow
/// </summary>
@@ -68,26 +76,31 @@
};
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()
+ line = new Button()
{
X = Application.GetRealWidth(CommonFormResouce.X_Left),
- Y = Height - 2,
+ Y = Height - 1,
Width = Application.GetRealWidth(965),
- Height = 2,
+ Height = 1,
BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2,
};
AddChidren(line);
+ ClickButton = new Button
+ {
+
+ };
+ AddChidren(ClickButton);
}
/// <summary>
@@ -96,7 +109,7 @@
/// <param name="title"></param>
public void SetName(string title)
{
- ZoneButton.Text = title;
+ NameButton.Text = title;
}
@@ -106,7 +119,7 @@
/// <param name="title"></param>
public void SetZone(string title)
{
- NameButton.Text = title;
+ ZoneButton.Text = title;
}
/// <summary>
@@ -117,7 +130,23 @@
{
IconButton.UnSelectedImagePath = imagePath;
}
-
+
+ /// <summary>
+ /// SetStatu
+ /// </summary>
+ /// <param name="statu"></param>
+ public void SetStatu(bool statu)
+ {
+ SelectBtn.Visible = statu;
+ }
+ /// <summary>
+ /// HideLine
+ /// </summary>
+ /// <param name="statu"></param>
+ public void HideLine(bool statu)
+ {
+ line.Visible = !statu;
+ }
}
}
--
Gitblit v1.8.0