From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 21 二月 2020 13:08:47 +0800
Subject: [PATCH] 先上传个版本吧

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/ChooseKeyModePage.cs |   66 ++++++++++++++++++++++++--------
 1 files changed, 49 insertions(+), 17 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/ChooseKeyModePage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/ChooseKeyModePage.cs
index d5408d6..8230911 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/ChooseKeyModePage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/ChooseKeyModePage.cs
@@ -29,23 +29,46 @@
             this.targetList = targetSelectList;
         }
 
-        #region 鈼� 鍙橀噺鐢虫槑__________________________
-        ZigBee.Device.Panel currentKey;//褰撳墠鎸夐敭
-        //鏄剧ず琚粦瀹氳澶囨垨鍦烘櫙鐨剉iew
-        VerticalScrolViewLayout midVerticalScrolViewLayout;//涓儴鍒锋柊鍒楄〃
-        HorizontalScrolViewLayout btnHorizontalScrolViewLayout;//鎴块棿鍒楄〃宸﹀彸婊戝姩甯冨眬
+        #region 鍙橀噺鐢虫槑
+        /// <summary>
+        /// 褰撳墠鎸夐敭
+        /// </summary>
+        ZigBee.Device.Panel currentKey;
+        /// <summary>
+        /// 涓儴鍒锋柊鍒楄〃
+        /// </summary>
+        VerticalScrolViewLayout midVerticalScrolViewLayout;
+        /// <summary>
+        /// 鎴块棿鍒楄〃宸﹀彸婊戝姩甯冨眬
+        /// </summary>
+        HorizontalScrolViewLayout btnHorizontalScrolViewLayout;
         /// <summary>
         /// 鎸夐敭閰嶇疆鐨勭洰鏍囧垪琛�
         /// </summary>
-        List<CommonDevice> targetList = new List<CommonDevice>();//鏈湴涓存椂閫変腑鍒楄〃
+        List<CommonDevice> targetList = new List<CommonDevice>();
         /// <summary>
-        /// 鏂扮殑鎸夐敭閰嶇疆鐩爣鍒楄〃涓紝鐩爣瀹為檯瀛樺湪鎸夐敭涓紝姝ゆ椂瑕佸垹鎺夌殑鏁版嵁
+        /// 鏈湴鏃х殑閫変腑鍒楄〃
         /// </summary>
-        List<CommonDevice> oldTargetList = new List<CommonDevice>();//鏈湴鏃х殑閫変腑鍒楄〃
-        int currentClusterID = 6;//褰撳墠绨嘔D
-        public Action<List<BindListResponseObj>> action;//鍥炶皟缁戝畾鐩爣椤甸潰鍒锋柊
-        int currentModeID = 0;//褰撳墠妯″紡ID
-        string curDeviceBindType = "";//褰撳墠璁惧缁戝畾绫诲瀷
+        List<CommonDevice> oldTargetList = new List<CommonDevice>();
+        /// <summary>
+        /// 褰撳墠绨嘔D
+        /// </summary>
+        int currentClusterID = 6;
+        /// <summary>
+        /// 鍥炶皟缁戝畾鐩爣椤甸潰鍒锋柊
+        /// </summary>
+        public Action<List<BindListResponseObj>> action;
+        /// <summary>
+        /// 褰撳墠妯″紡ID
+        /// </summary>
+        int currentModeID = 0;
+        /// <summary>
+        /// 褰撳墠璁惧缁戝畾绫诲瀷
+        /// </summary>
+        string curDeviceBindType = "";
+        /// <summary>
+        /// 绫诲瀷鐨勫叿浣撴ā寮忓垪琛�
+        /// </summary>
         List<int> typeDetailModeList = new List<int> { };
         #endregion
 
@@ -96,6 +119,7 @@
                 BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack,
                 TextColor = Shared.Common.ZigbeeColor.Current.XMWhite,
                 TextSize = 16,
+                IsBold = true,
             };
             bottomFrameLayout.AddChidren(btnFinifh);
             #endregion
@@ -577,6 +601,9 @@
             });
         }
 
+        /// <summary>
+        /// 娣诲姞寮�鍏虫ā寮�
+        /// </summary>
         async private void AddSwitchMode()
         {
             if (typeDetailModeList == null)
@@ -612,6 +639,7 @@
                     Y = Application.GetRealHeight(58),
                     TextColor = Shared.Common.ZigbeeColor.Current.TextBlack,
                     TextAlignment = TextAlignment.CenterLeft,
+                    TextSize = 14,
                 };
                 rowLayout.AddChidren(btnModeText);
 
@@ -721,6 +749,9 @@
             }
         }
 
+        /// <summary>
+        /// 娣诲姞璋冨厜妯″紡
+        /// </summary>
         async private void AddDimmerMode()
         {
             if (typeDetailModeList == null)
@@ -767,6 +798,7 @@
                     Y = Application.GetRealHeight(58),
                     TextColor = Shared.Common.ZigbeeColor.Current.TextBlack,
                     TextAlignment = TextAlignment.CenterLeft,
+                    TextSize = 14,
                 };
                 rowLayout.AddChidren(btnModeText);
 
@@ -810,7 +842,7 @@
                         break;
                 }
 
-                if (i == typeDetailModeList.Count - 1)
+                if (i == typeDetailModeListTemp.Count - 1)
                 {
                     line2.Visible = false;
                 }
@@ -902,6 +934,9 @@
             }
         }
 
+        /// <summary>
+        /// 娣诲姞绐楀笜妯″紡
+        /// </summary>
         async private void AddCurtainMode()
         {
             if (typeDetailModeList == null)
@@ -937,6 +972,7 @@
                     Y = Application.GetRealHeight(58),
                     TextColor = Shared.Common.ZigbeeColor.Current.TextBlack,
                     TextAlignment = TextAlignment.CenterLeft,
+                    TextSize = 14,
                 };
                 rowLayout.AddChidren(btnModeText);
 
@@ -1072,10 +1108,6 @@
             }
         }
 
-        private void FinisfhEventHandler(object sender, MouseEventArgs e)
-        {
-
-        }
 
         public void DeviceInfoChange(CommonDevice common, string typeTag)
         {

--
Gitblit v1.8.0