From d41f1d4a478c1afcc43f3a5abb0ba76e376bc7c1 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 09 三月 2021 15:23:25 +0800
Subject: [PATCH] 2

---
 HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs b/HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs
index 62219a8..c0ac00b 100644
--- a/HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs
+++ b/HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs
@@ -23,8 +23,12 @@
         /// <summary>
         /// 
         /// </summary>
-        public EmptyTipView()
+        public EmptyTipView(string tipMsg ="")
         {
+            if(tipMsg == "")
+            {
+                tipMsg = Language.StringByID(StringId.ContentIsEmpty);
+            }
             int tipHeight = Application.GetRealWidth(180);
 
             this.Height = tipHeight + Application.GetRealHeight(17);
@@ -41,9 +45,9 @@
             //绌虹┖濡備篃
             Button btnTipNotText = new Button()
             {
-                Y = BtnTipNot.Bottom,
+                Y = tipHeight,
                 Height = Application.GetRealHeight(17),
-                TextID = StringId.ContentIsEmpty,
+                Text = tipMsg,
                 TextAlignment = TextAlignment.Center,
                 TextColor = CSS_Color.TextualColor,
                 TextSize = CSS_FontSize.PromptFontSize_FirstLevel,

--
Gitblit v1.8.0