From f982455916297ab07379d902a7f15b7a7a867c94 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 20 十月 2021 09:19:20 +0800
Subject: [PATCH] 1
---
HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs b/HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs
index 9b7a74f..f1de0b0 100644
--- a/HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs
+++ b/HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs
@@ -11,6 +11,12 @@
{
Dialog dialog;
FrameLayout bodyView;
+
+ /// <summary>
+ /// 鍥炴帀鍑芥暟
+ /// </summary>
+ public Action rebackAction = null;
+
public OperationResultDisPalyPage()
{
dialog = this;
@@ -24,7 +30,8 @@
/// <param name="title">椤甸潰鏍囬</param>
/// <param name="tipTitle">鎻愮ず鏍囬</param>
/// <param name="tipMsg">鎻愮ず淇℃伅</param>
- public void LoadPage(bool result,string title,string tipTitle,string tipMsg)
+ /// <param name="confirmText">鎸夐挳鏂囨湰</param>
+ public void LoadPage(bool result,string title,string tipTitle,string tipMsg,string confirmText = "")
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
dialog.AddChidren(bodyView);
@@ -68,8 +75,8 @@
Y = Application.GetRealHeight(401),
Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(220),
- Height = Application.GetRealHeight(44),
- Radius = (uint)Application.GetRealHeight(22),
+ Height = Application.GetRealWidth(44),
+ Radius = (uint)Application.GetRealWidth(22),
BackgroundColor = CSS_Color.MainColor,
TextAlignment = TextAlignment.Center,
TextColor = CSS_Color.MainBackgroundColor,
@@ -77,8 +84,14 @@
TextSize = CSS_FontSize.SubheadingFontSize,
};
bodyView.AddChidren(btnConfirm);
+ if(confirmText != "")
+ {
+ btnConfirm.Text = confirmText;
+ }
+
btnConfirm.MouseUpEventHandler = (sender, e) => {
this.Close();
+ rebackAction?.Invoke();
};
}
@@ -103,7 +116,7 @@
X = btnCheckIcon.Right,
Y = Application.GetRealHeight(350),
Width = Application.GetRealWidth(220),
- Height = Application.GetRealHeight(32),
+ Height = Application.GetRealWidth(32),
TextAlignment = TextAlignment.CenterLeft,
Text = msg,
TextColor = CSS_Color.FirstLevelTitleColor,
--
Gitblit v1.8.0