From 23c075a9c27946773feccf05abc90489a6bf5203 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 06 七月 2020 15:58:53 +0800 Subject: [PATCH] 20200706 --- HDL_ON/UI/UI0-Public/PublicAssmebly.cs | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI0-Public/PublicAssmebly.cs b/HDL_ON/UI/UI0-Public/PublicAssmebly.cs index 0d65b63..107def7 100644 --- a/HDL_ON/UI/UI0-Public/PublicAssmebly.cs +++ b/HDL_ON/UI/UI0-Public/PublicAssmebly.cs @@ -658,6 +658,54 @@ thread.Start(); } + /// <summary> + /// 鍔犺浇鏄剧ず绛夊緟绐楀彛 + /// </summary> + /// <param name="msg"></param> + /// <returns>杩斿洖鍏抽棴绐楀彛Action</returns> + public Action TipLoadingMsgDialog(string msg) + { + Dialog dialog = new Dialog() + { + X = Application.GetRealWidth(89), + Y = Application.GetRealHeight(285), + Width = Application.GetRealWidth(198), + Height = Application.GetRealHeight(98), + }; + + FrameLayout frame = new FrameLayout() + { + BackgroundColor = CSS_Color.DialogTransparentColor1, + Radius = (uint)Application.GetRealWidth(12), + }; + dialog.AddChidren(frame); + + Button btnTipIcon = new Button() + { + Gravity = Gravity.CenterHorizontal, + Y = Application.GetRealHeight(15), + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), + UnSelectedImagePath = "Public/MsgIcon/LoadingIcon.png", + }; + frame.AddChidren(btnTipIcon); + + Button btnTipMsg = new Button() + { + Y = Application.GetRealHeight(47), + Height = Application.GetRealHeight(50), + TextAlignment = TextAlignment.Center, + TextSize = CSS_FontSize.TextFontSize, + TextColor = CSS_Color.MainBackgroundColor, + Text = msg, + }; + frame.AddChidren(btnTipMsg); + + dialog.Show(); + return new Action(() => { + dialog.Close(); + }); + } } } \ No newline at end of file -- Gitblit v1.8.0