From 3272ca5b51e19f7f8a827b0f68400570a547fe60 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 28 四月 2020 15:02:44 +0800
Subject: [PATCH] 2020-04-28-1

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs |   25 +++++++++++++++++++++----
 1 files changed, 21 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 e022650..dbc3daa 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs
@@ -45,6 +45,10 @@
                 }
             }
         }
+        /// <summary>
+        /// 澶勪簬闈為�変腑鐘舵�佹椂锛屾槸鍚︽妸瀛椾綋鍙樻垚鐏拌壊(榛樿鍙樻垚鐏拌壊)
+        /// </summary>
+        public bool ChangedTextColor = true;
 
         #endregion
 
@@ -63,15 +67,22 @@
         /// <summary>
         /// 鍒濆鍖栧唴閮ㄦ帶浠�
         /// </summary>
-        public void InitControl()
+        /// <param name="iconParh">宸︿晶鍥炬爣</param>
+        public void InitControl(string iconParh = "")
         {
+            //鍥剧墖
+            if (iconParh != "")
+            {
+                var btnIcon = this.AddLeftIcon();
+                btnIcon.UnSelectedImagePath = iconParh;
+            }
             //鏄剧ず鏂囨湰
             btnText = this.AddLeftCaption(this.textValue, 600);
             btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
             //閫夋嫨鎺т欢
             btnSelect = this.AddMostRightEmptyIcon(58, 58);
             btnSelect.Visible = false;
-            btnSelect.UnSelectedImagePath = "Item/Tick.png";
+            btnSelect.UnSelectedImagePath = "Item/ItemSelected.png";
         }
 
         #endregion
@@ -88,7 +99,10 @@
                 return;
             }
             btnSelect.Visible = true;
-            btnText.TextColor = UserCenterColor.Current.TextColor1;
+            if (this.ChangedTextColor == true)
+            {
+                btnText.TextColor = UserCenterColor.Current.TextColor1;
+            }
             //鐘舵�佸彉鏇�
             Statu = StatuMode.SELECT;
         }
@@ -103,7 +117,10 @@
                 return;
             }
             btnSelect.Visible = false;
-            btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
+            if (this.ChangedTextColor == true)
+            {
+                btnText.TextColor = UserCenterColor.Current.TextGrayColor3;
+            }
             //鐘舵�佸彉鏇�
             Statu = StatuMode.UN_SELECT;
         }

--
Gitblit v1.8.0