| | |
| | | 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;
|
| | |
| | | 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);
|
| | | };
|
| | | }
|
| | | }
|
| | | }
|