From 48ba446936b51fffafa7c3600c0dadc6ac0e8c20 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 10 七月 2020 10:52:13 +0800
Subject: [PATCH] 2020-07-10-01

---
 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