From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 19 十一月 2020 10:23:45 +0800 Subject: [PATCH] Evoyo.Home1.1.0120111601_Release --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs | 11 +++++------ 1 files changed, 5 insertions(+), 6 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 27f699f..6f8eb29 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs @@ -41,7 +41,7 @@ this.BackgroundColor = UserCenterColor.Current.ClickButtonDefultColor; this.TextAlignment = TextAlignment.Center; - this.MouseDownEventHandler += this.Button_MouseDownEvent; + this.ButtonDownClickEvent += this.Button_MouseDownEvent; } #endregion @@ -58,7 +58,7 @@ if (this.UseClickStatu == false) { //姘镐箙绉婚櫎 - this.MouseDownEventHandler -= this.Button_MouseDownEvent; + this.ButtonDownClickEvent -= Button_MouseDownEvent; return; } if (base.CanClick == false || isSelcetStatu == true) @@ -73,10 +73,10 @@ //璁剧疆鐐瑰嚮鍚庣殑鐘舵�� this.SetClickStatu(); - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { System.Threading.Thread.Sleep(ControlCommonResourse.StatuChangedWaitTime); - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (base.CanClick == false || isSelcetStatu == false) { @@ -86,8 +86,7 @@ //璁剧疆闈炵偣鍑诲悗鐨勭姸鎬� this.SetNotClickStatu(); }); - }) - { IsBackground = true }.Start(); + }); } /// <summary> -- Gitblit v1.8.0