From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期五, 12 六月 2020 09:22:04 +0800 Subject: [PATCH] 2020.06.12 --- 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