From a1b0ab7044100daaa7e0f1da2d2ca45e38098963 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 29 三月 2021 09:13:25 +0800
Subject: [PATCH] 2021-3-29-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