From 5428935270159bfc42c2934ed7fb1091554fc9a4 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 09 七月 2020 17:12:42 +0800
Subject: [PATCH] 修改了 sokect

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs |   33 +++++++++++++++++++++++++++++----
 1 files changed, 29 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs
index 63d9ce0..850ab6d 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs
@@ -16,6 +16,10 @@
         /// </summary>
         private string textValue = string.Empty;
         /// <summary>
+        /// 涓嬮儴鏄剧ず鏂囨湰
+        /// </summary>
+        private string textBottomValue = null;
+        /// <summary>
         /// 鏂囨湰鎺т欢
         /// </summary>
         private NormalViewControl btnText = null;
@@ -46,7 +50,7 @@
             }
         }
         /// <summary>
-        /// 澶勪簬闈為�変腑鐘舵�佹椂锛屾槸鍚︽妸瀛椾綋鍙樻垚鐏拌壊(榛樿鍙樻垚鐏拌壊)
+        /// 澶勪簬閫変腑鎴栬�呴潪閫変腑鐘舵�佹椂锛屾槸鍚﹀彉鏇村瓧浣撻鑹�
         /// </summary>
         public bool ChangedTextColor = true;
 
@@ -65,6 +69,18 @@
         }
 
         /// <summary>
+        /// 鍋氭垚涓�涓畝鍗曠殑閫夋嫨鎺т欢
+        /// </summary>
+        /// <param name="i_topText">涓婇儴鏄剧ず鏂囨湰</param>
+        /// <param name="i_bottomText">涓嬮儴鏄剧ず鏂囨湰</param>
+        /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param>
+        public NormalSelectControl(string i_topText, string i_bottomText, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
+        {
+            this.textValue = i_topText;
+            this.textBottomValue = i_bottomText;
+        }
+
+        /// <summary>
         /// 鍒濆鍖栧唴閮ㄦ帶浠�
         /// </summary>
         /// <param name="iconParh">宸︿晶鍥炬爣</param>
@@ -76,9 +92,18 @@
                 var btnIcon = this.AddLeftIcon();
                 btnIcon.UnSelectedImagePath = iconParh;
             }
-            //鏄剧ず鏂囨湰
-            btnText = this.AddLeftCaption(this.textValue, 600);
-            btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
+            if (this.textBottomValue == null)
+            {
+                //鏄剧ず鏂囨湰
+                btnText = this.AddLeftCaption(this.textValue, 600);
+                btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
+            }
+            else
+            {
+                //鏄剧ず鏂囨湰
+                btnText = this.AddTopView(this.textValue, 600);
+                this.AddBottomView(this.textBottomValue, 600);
+            }
             //閫夋嫨鎺т欢
             btnSelect = this.AddMostRightEmptyIcon(58, 58);
             btnSelect.Visible = false;

--
Gitblit v1.8.0