From eb424d24e39bab4a245725f35deab3f234ea0f13 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 13 十二月 2019 10:48:50 +0800
Subject: [PATCH] 2019.12.13

---
 ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs |   42 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
index 69b0a79..ff40bd5 100644
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
@@ -17,6 +17,10 @@
         /// </summary>
         public Button NextBtn;
         /// <summary>
+        /// ClickBtn
+        /// </summary>
+        public Button ClickBtn;
+        /// <summary>
         /// line
         /// </summary>
         private Button line;
@@ -50,7 +54,7 @@
 
             NameText = new Button
             {
-                X = Application.GetRealWidth(300),
+                X = Application.GetRealWidth(350),
                 Width = Application.GetRealWidth(600),
                 Height = Application.GetRealHeight(80),
                 Gravity = Gravity.CenterVertical,
@@ -79,6 +83,9 @@
                 BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2,
             };
             AddChidren(line);
+
+            ClickBtn = new Button();
+            AddChidren(ClickBtn);
         }
 
         /// <summary>
@@ -97,6 +104,15 @@
         public void SetTitle(int title)
         {
             SetTitle(Language.StringByID(title));
+        }
+
+        /// <summary>
+        /// SetTitleColor
+        /// </summary>
+        /// <param name="color"></param>
+        public void SetTitleColor(uint color)
+        {
+            NameText.TextColor = color;
         }
 
 
@@ -118,9 +134,31 @@
             SetTipTitle(Language.StringByID(title));
         }
 
+        /// <summary>
+        /// HideLine
+        /// </summary>
+        /// <param name="hiden"></param>
         public void HideLine(bool hiden)
         {
-            line.Visible = hiden;
+            line.Visible = !hiden;
+        }
+
+        /// <summary>
+        /// HideNext
+        /// </summary>
+        /// <param name="hiden"></param>
+        public void HideNext(bool hiden)
+        {
+            NextBtn.Visible = !hiden;
+        }
+
+        /// <summary>
+        /// CanClick
+        /// </summary>
+        /// <param name="canClick"></param>
+        public void CanClick(bool canClick)
+        {
+            ClickBtn.Enable = canClick;
         }
     }
 }

--
Gitblit v1.8.0