From dc0309e64f02227d8e1468b7326c07955f804612 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期三, 22 六月 2022 11:22:18 +0800
Subject: [PATCH] 修改引用路径

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs |   83 ++++++++++++++++++++++++++---------------
 1 files changed, 53 insertions(+), 30 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs
old mode 100755
new mode 100644
index 855c674..8f5e5db
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs
@@ -1,35 +1,58 @@
-锘縰sing System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Shared.Phone.UserCenter
-{
-    /// <summary>
-    /// 鍋氭垚涓�涓瓨鍦ㄤ簬BodyFrameLayout搴曢儴杩涜鍗曞嚮鐨勬寜閽湬
-    /// </summary>
-    public class BottomClickButton : ClickButtonCommon
-    {
-        /// <summary>
-        /// Y杞村潗鏍�
-        /// </summary>
-        public int Yaxis = 0;
-
-        /// <summary>
-        /// 鍋氭垚涓�涓瓨鍦ㄤ簬BodyFrameLayout搴曢儴杩涜鍗曞嚮鐨勬寜閽�
-        /// </summary>
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Shared.Phone.UserCenter
+{
+    /// <summary>
+    /// 鍋氭垚涓�涓瓨鍦ㄤ簬BodyFrameLayout搴曢儴杩涜鍗曞嚮鐨勬寜閽湬
+    /// </summary>
+    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;
+
+        /// <summary>
+        /// 鍋氭垚涓�涓瓨鍦ㄤ簬BodyFrameLayout搴曢儴杩涜鍗曞嚮鐨勬寜閽�
+        /// </summary>
         /// <param name="i_width">鏈変簺鐣岄潰寰堢壒娈�,涓嶇粺涓�鎸夐敭瀹藉害,鎵�浠ラ鐣欐鍙傛暟</param>
         public BottomClickButton(int i_width = 907)
-        {
-            this.Yaxis = Application.GetRealHeight(1472);
-
-            //杩欎釜鏄竴鑸綅缃�
-            this.Width = Application.GetRealWidth(i_width);
-            this.Height = Application.GetRealHeight(127);
-            this.Y = this.Yaxis;
-            this.Gravity = Gravity.CenterHorizontal;
+        {
+            this.Yaxis = Application.GetRealHeight(1472);
+
+            //杩欎釜鏄竴鑸綅缃�
+            this.Width = Application.GetRealWidth(i_width);
+            this.Height = Application.GetRealHeight(127);
+            this.Y = this.Yaxis;
+            this.Gravity = Gravity.CenterHorizontal;
             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