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/DeviceInfoRow.cs |   66 ++++++++++++++++++++++++++++----
 1 files changed, 57 insertions(+), 9 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
index f335c58..397eb92 100755
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
@@ -4,7 +4,6 @@
 {
     public class DeviceInfoRow : FrameLayout
     {
-
         /// <summary>
         /// TipBtn
         /// </summary>
@@ -17,6 +16,14 @@
         /// NextBtn
         /// </summary>
         public Button NextBtn;
+        /// <summary>
+        /// ClickBtn
+        /// </summary>
+        public Button ClickBtn;
+        /// <summary>
+        /// line
+        /// </summary>
+        private Button line;
 
         /// <summary>
         /// DeviceInfoEditRow
@@ -41,18 +48,20 @@
                 Height = Application.GetRealHeight(80),
                 Gravity = Gravity.CenterVertical,
                 TextColor = ZigbeeColor.Current.GXCTextBlackColor,
-                TextAlignment = TextAlignment.CenterLeft
+                TextAlignment = TextAlignment.CenterLeft,
+                TextSize=CommonFormResouce.TextSize
             };
             AddChidren(TipBtn);
 
             NameText = new Button
             {
                 X = Application.GetRealWidth(300),
-                Width = Application.GetRealWidth(600),
+                Width = Application.GetRealWidth(650),
                 Height = Application.GetRealHeight(80),
                 Gravity = Gravity.CenterVertical,
                 TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2,
-                TextAlignment = TextAlignment.CenterLeft
+                TextAlignment = TextAlignment.CenterLeft,
+                TextSize = CommonFormResouce.TextSize
             };
             AddChidren(NameText);
 
@@ -62,20 +71,23 @@
                 Width = Application.GetMinRealAverage(100),
                 Height = Application.GetMinRealAverage(100),
                 Gravity = Gravity.CenterVertical,
-                SelectedImagePath="Item/Next.png",
-                UnSelectedImagePath= "Item/NextSelected.png"
+                SelectedImagePath= "Item/NextSelected.png",
+                UnSelectedImagePath= "Item/Next.png"
             };
             AddChidren(NextBtn);
 
-            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);
+
+            ClickBtn = new Button();
+            AddChidren(ClickBtn);
         }
 
         /// <summary>
@@ -96,6 +108,15 @@
             SetTitle(Language.StringByID(title));
         }
 
+        /// <summary>
+        /// SetTitleColor
+        /// </summary>
+        /// <param name="color"></param>
+        public void SetTitleColor(uint color)
+        {
+            NameText.TextColor = color;
+        }
+
 
         /// <summary>
         /// SetName
@@ -114,5 +135,32 @@
         {
             SetTipTitle(Language.StringByID(title));
         }
+
+        /// <summary>
+        /// HideLine
+        /// </summary>
+        /// <param name="hiden"></param>
+        public void HideLine(bool 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