From f1c3921b08bb22ac6f5db22d620e01d7e8e5c49f Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 30 十二月 2019 13:32:33 +0800
Subject: [PATCH] 2019-12-30-1

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs
index efabd5d..514060f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs
@@ -16,9 +16,13 @@
         /// </summary>
         public bool UseClickStatu = true;
         /// <summary>
-        /// 鍘熸潵鐨勮儗鏅壊(杩笉寰楀繁,杩欎釜涓滆タ闇�瑕佸紑鏀惧嚭鍘�)
+        /// 鍘熸潵鐨勮儗鏅壊(杩笉寰楀繁,杩欎釜涓滆タ闇�瑕佸紑鏀惧嚭鍘�,璁剧疆涓�娆′箣鍚庡皢涓嶄細鍐嶈缃�)
         /// </summary>
         public uint oldBackgroundColor = 0;
+        /// <summary>
+        /// 鐐瑰嚮鐘舵�佺殑鑳屾櫙鑹�(杩笉寰楀繁,杩欎釜涓滆タ闇�瑕佸紑鏀惧嚭鍘�,榛樿浣跨敤搴曞眰璁剧疆鐨�)
+        /// </summary>
+        public uint clickStatuColor = UserCenterColor.Current.ButtonClickStatuColor;
         /// <summary>
         /// 鏄惁澶勪簬閫夋嫨鐘舵��
         /// </summary>
@@ -62,11 +66,14 @@
                 //鎺т欢涓嶈兘鐐瑰嚮,鎴栬�呭綋鍓嶅浜庨�夋嫨鐘舵��,鍒欎笉鑳借Е鍙�
                 return;
             }
-
+            if (this.oldBackgroundColor == 0)
+            {
+                this.oldBackgroundColor = this.BackgroundColor;
+            }
             //璁剧疆鐐瑰嚮鍚庣殑鐘舵��
             this.SetClickStatu();
 
-            new System.Threading.Thread(() =>
+            HdlThreadLogic.Current.RunThread(() =>
             {
                 System.Threading.Thread.Sleep(ControlCommonResourse.StatuChangedWaitTime);
                 Application.RunOnMainThread(() =>
@@ -79,8 +86,7 @@
                     //璁剧疆闈炵偣鍑诲悗鐨勭姸鎬�
                     this.SetNotClickStatu();
                 });
-            })
-            { IsBackground = true }.Start();
+            });
         }
 
         /// <summary>
@@ -89,11 +95,7 @@
         public override void SetClickStatu()
         {
             this.isSelcetStatu = true;
-            if (this.oldBackgroundColor == 0)
-            {
-                this.oldBackgroundColor = this.BackgroundColor;
-            }
-            this.BackgroundColor = UserCenterColor.Current.ButtonClickStatuColor;
+            this.BackgroundColor = clickStatuColor;
         }
 
         /// <summary>
@@ -102,10 +104,6 @@
         public override void SetNotClickStatu()
         {
             this.isSelcetStatu = false;
-            if (this.oldBackgroundColor == 0)
-            {
-                this.oldBackgroundColor = this.BackgroundColor;
-            }
             //璁剧疆涓嶉�夋嫨鐘舵��
             this.BackgroundColor = oldBackgroundColor;
         }

--
Gitblit v1.8.0