From 43b0d5870d528f23ecd6aeceb6cfd4325188b46f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 01 七月 2021 15:50:43 +0800
Subject: [PATCH] Revert "1"

---
 HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs b/HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs
old mode 100755
new mode 100644
index 7c0c2de..f1de0b0
--- 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);
@@ -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