From 6cc05bf6044c72f63b289da6b0a542970b16ef75 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 14 十二月 2021 12:36:33 +0800
Subject: [PATCH] On Pro

---
 HDL_ON/UI/UI0-Public/PublicAssmebly.cs |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/PublicAssmebly.cs b/HDL_ON/UI/UI0-Public/PublicAssmebly.cs
index e3b259b..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);

--
Gitblit v1.8.0