From e1a8f2f7e4d850beedeb1469610b878c1427e976 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 15 十二月 2021 09:01:53 +0800
Subject: [PATCH] 更新

---
 HDL_ON/UI/UI0-Public/PublicAssmebly.cs |   49 ++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 38 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/PublicAssmebly.cs b/HDL_ON/UI/UI0-Public/PublicAssmebly.cs
index de994f8..618425a 100644
--- a/HDL_ON/UI/UI0-Public/PublicAssmebly.cs
+++ b/HDL_ON/UI/UI0-Public/PublicAssmebly.cs
@@ -129,14 +129,14 @@
                 //TextAlignment = TextAlignment.CenterLeft ,
             };
             editView.AddChidren(etParater);
-            if(encryption)
+            if (encryption)
             {
                 etParater.SecureTextEntry = encryption;
             }
 
             Button btnClear = new Button()
             {
-                X = Application.GetRealWidth(218-25),
+                X = Application.GetRealWidth(218 - 25),
                 Gravity = Gravity.CenterVertical,
                 Width = Application.GetRealWidth(24),
                 Height = Application.GetRealWidth(24),
@@ -235,6 +235,16 @@
         /// <param name="callBackAction"></param>
         public void TipOptionMsg(int titleId, int msgId, Action callBackAction)
         {
+            TipOptionMsg(titleId, Language.StringByID(msgId), callBackAction);
+        }
+        /// <summary>
+        /// 鍔犺浇鎻愮ず寮圭獥
+        /// </summary>
+        /// <param name="titleId"></param>
+        /// <param name="msgId"></param>
+        /// <param name="callBackAction"></param>
+        public void TipOptionMsg(int titleId, string msg, Action callBackAction)
+        {
             Dialog dialog = new Dialog()
             {
                 BackgroundColor = CSS_Color.DialogTransparentColor1,
@@ -273,7 +283,7 @@
                 TextAlignment = TextAlignment.Center,
                 TextColor = CSS_Color.TextualColor,
                 TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-                TextID = msgId,
+                Text = msg,
                 IsMoreLines = true,
             };
             contentView.AddChidren(btnMsg);
@@ -412,14 +422,15 @@
             })
             { IsBackground = true }.Start();
         }
-
         /// <summary>
         /// 鍔犺浇鎻愮ず寮圭獥
         /// </summary>
-        /// <param name="titleId"></param>
-        /// <param name="msgId"></param>
-        public void TipMsg(int titleId, int msgId,Action action = null)
+        /// <param name="title"></param>
+        /// <param name="msg"></param>
+        /// <param name="action"></param>
+        public void TipMsg(string title, string msg, Action action = null)
         {
+
             Dialog dialog = new Dialog()
             {
                 BackgroundColor = CSS_Color.DialogTransparentColor1,
@@ -445,7 +456,7 @@
                 TextSize = CSS_FontSize.SubheadingFontSize,
                 TextAlignment = TextAlignment.Center,
                 IsBold = true,
-                TextID = titleId,
+                Text = title
             };
             contentView.AddChidren(btnTitle);
 
@@ -458,7 +469,7 @@
                 TextAlignment = TextAlignment.Center,
                 TextColor = CSS_Color.TextualColor,
                 TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-                TextID = msgId,
+                Text = msg,
                 IsMoreLines = true,
             };
             contentView.AddChidren(btnMsg);
@@ -499,6 +510,18 @@
 
         }
 
+
+
+        /// <summary>
+        /// 鍔犺浇鎻愮ず寮圭獥
+        /// </summary>
+        /// <param name="titleId"></param>
+        /// <param name="msgId"></param>
+        public void TipMsg(int titleId, int msgId, Action action = null)
+        {
+            TipMsg(Language.StringByID(titleId), Language.StringByID(msgId), action);
+        }
+
         /// <summary>
         /// 鍔犺浇绛夊緟鐣岄潰
         /// </summary>
@@ -513,7 +536,11 @@
                 if (showedTime.AddSeconds(30) > DateTime.Now)
                 {
                     thread.Abort();
-                    waitPage.RemoveFromParent();
+                    if (waitPage != null)
+                    {
+                        waitPage.RemoveFromParent();
+                        waitPage = null;
+                    }
                 }
             };
             thread.Start();
@@ -586,7 +613,7 @@
             BottomTimeSelectControl timeControl = new BottomTimeSelectControl(mRange, sRange, 5, Language.StringByID(StringId.SceneDelay));
             timeControl.RowHeight = Application.GetRealHeight(50);
             timeControl.InitControl(0, 0, 262, false);
-            timeControl.ChangePickerEvent2();
+            //timeControl.ChangePickerEvent2();
             timeControl.FinishEvent = (type, hours, min) =>
             {
                 if(type == 1)

--
Gitblit v1.8.0