From 1ec6794e808b9627276255ca3846326c9316034a Mon Sep 17 00:00:00 2001 From: gxc <gxc@hdlchina.com.cn> Date: 星期三, 11 十二月 2019 16:36:53 +0800 Subject: [PATCH] 2019.12.11-2 --- ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs index e0fd6a0..0c64067 100644 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs @@ -11,6 +11,15 @@ public const int AppRealWidth = 1080; /// <summary> + /// 14 + /// </summary> + public const int TextSize = 14; + /// <summary> + /// 16 + /// </summary> + public const int TextSize_Selected = 16; + + /// <summary> /// 瀛椾綋12 /// </summary> public const int loginTextSize = 12; @@ -231,6 +240,21 @@ return $"{sec}{Language.StringByID(R.MyInternationalizationString.Second)}"; } } - } + /// <summary> + /// 鏄剧ず鎻愮ず + /// </summary> + /// <param name="r">The red component.</param> + public static void ShowTip(string msg) + { + Application.RunOnMainThread(() => + { + var myTip = new Tip(); + myTip.Direction = AMPopTipDirection.None; + myTip.CloseTime = 2; + myTip.Text = msg; + myTip.Show(Common.CommonPage.Instance); + }); + } + } } -- Gitblit v1.8.0