From 94e4e5b9fd3da964c44b7b14227d6fe2bbb426d7 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 02 四月 2020 13:56:39 +0800
Subject: [PATCH] 2020-04-02-2

---
 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 100755
--- 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