From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 18 九月 2020 13:58:19 +0800 Subject: [PATCH] 新版本 --- 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