From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期一, 14 十二月 2020 09:59:01 +0800
Subject: [PATCH] 请合并代码,完成晾衣架最终功能。
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 58 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
new file mode 100755
index 0000000..e2e762f
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomClickButton.cs
@@ -0,0 +1,58 @@
+锘縰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.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