From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 25 十二月 2019 11:21:06 +0800
Subject: [PATCH] 2019.12.25

---
 ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs |   52 ++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 46 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
index 69b0a79..3004d7d 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;
@@ -44,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);
 
@@ -65,8 +71,8 @@
                 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);
 
@@ -79,6 +85,9 @@
                 BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2,
             };
             AddChidren(line);
+
+            ClickBtn = new Button();
+            AddChidren(ClickBtn);
         }
 
         /// <summary>
@@ -97,6 +106,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 +136,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