From b78a4d0ca90416d37fcbaf5e54b00f7eaab53919 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 14 十月 2019 17:03:58 +0800
Subject: [PATCH] 2019-10-14-2
---
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