From 18a7f9f40e5fab3bee5d4ac3d8fd0273dea052d6 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期日, 26 四月 2020 12:05:28 +0800
Subject: [PATCH] 先上传一个非最新的版本
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Common/ClickButtonCommon.cs | 9 ++++-----
1 files changed, 4 insertions(+), 5 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..1b53982 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,7 +73,7 @@
//璁剧疆鐐瑰嚮鍚庣殑鐘舵��
this.SetClickStatu();
- new System.Threading.Thread(() =>
+ HdlThreadLogic.Current.RunThread(() =>
{
System.Threading.Thread.Sleep(ControlCommonResourse.StatuChangedWaitTime);
Application.RunOnMainThread(() =>
@@ -86,8 +86,7 @@
//璁剧疆闈炵偣鍑诲悗鐨勭姸鎬�
this.SetNotClickStatu();
});
- })
- { IsBackground = true }.Start();
+ });
}
/// <summary>
--
Gitblit v1.8.0