From 627093aca723d4bfb971b97c828e8b3a22dbda78 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 17 七月 2020 17:26:19 +0800
Subject: [PATCH] 2020-07-17-1
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs
index 855c674..e2e762f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs
@@ -10,6 +10,14 @@
public class BottomClickButton : ClickButtonCommon
{
/// <summary>
+ /// 鎺т欢鐨勭偣鍑讳簨浠�
+ /// </summary>
+ public new Action<Button, MouseEventArgs> ButtonClickEvent = null;
+ /// <summary>
+ /// 鏄惁妫�娴嬬晫闈�(榛樿涓嶆娴�)
+ /// </summary>
+ public bool CheckForm = false;
+ /// <summary>
/// Y杞村潗鏍�
/// </summary>
public int Yaxis = 0;
@@ -30,6 +38,21 @@
this.Radius = (uint)Application.GetRealHeight(128) / 2;
this.TextSize = 16;
this.IsBold = true;
+
+ base.ButtonClickEvent += (sender, e) =>
+ {
+ if (this.CheckForm == true && UserCenterResourse.DicActionForm.ContainsKey(this.formName) == true)
+ {
+ //妫�娴嬬晫闈�
+ bool result = UserCenterResourse.DicActionForm[this.formName].CheckForm();
+ if (result == false)
+ {
+ //妫�娴嬩笉閫氳繃
+ return;
+ }
+ }
+ this.ButtonClickEvent?.Invoke(sender, e);
+ };
}
}
}
--
Gitblit v1.8.0