From eb0b148e543c1dc4c1925184212868776a6f7417 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 18 十二月 2020 15:55:58 +0800 Subject: [PATCH] Merge branch 'WJC' into NewFilePath --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TipPopView.cs | 70 +++++++++++++++++++++++++++++++++++ 1 files changed, 70 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TipPopView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TipPopView.cs index 48a954b..53bec95 100755 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TipPopView.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TipPopView.cs @@ -575,5 +575,75 @@ { new PublicAssmebly().TipMsgAutoClose(msg, false, 2000); } + + /// <summary> + /// 閿欒淇℃伅鎻愮ず绐楀彛锛屾墜鍔ㄧ‘瀹氬叧闂� + /// </summary> + /// <param name="titleId">鏍囬鏂囨湰</param> + /// <param name="msgId">鎻愮ず閿欒鏂囨湰</param> + public void TipBox(int titleId, int msgId) + { + Dialog dialog = new Dialog() + { + BackgroundColor = CSS_Color.viewTrans60lucence, + }; + + FrameLayout contentView = new FrameLayout() + { + Gravity = Gravity.Center, + Width = Application.GetRealWidth(270), + Height = Application.GetRealHeight(140), + BackgroundColor = CSS.CSS_Color.MainBackgroundColor, + Radius = (uint)Application.GetRealHeight(RradiusFrameLayout), + }; + dialog.AddChidren(contentView); + + Button btnTitle = new Button() + { + Y = Application.GetRealHeight(20), + Height = Application.GetRealHeight(22), + TextColor = CSS_Color.MainColor, + TextSize = LogicView.TextSize.text16, + TextAlignment = TextAlignment.Center, + TextID= titleId, + }; + contentView.AddChidren(btnTitle); + + Button btnMsg = new Button() + { + Height = Application.GetRealHeight(17), + Y = Application.GetRealHeight(50), + TextAlignment = TextAlignment.Center, + TextColor = CSS_Color.TextualColor, + TextSize = LogicView.TextSize.text12, + TextID = msgId, + }; + contentView.AddChidren(btnMsg); + + Button btnLine = new Button() + { + Y = Application.GetRealHeight(96), + Height = Application.GetRealHeight(1), + BackgroundColor = CSS_Color.viewLine, + }; + contentView.AddChidren(btnLine); + + Button btnConfirm = new Button() + { + Y = btnLine.Bottom, + Height = Application.GetRealHeight(43), + TextAlignment = TextAlignment.Center, + TextColor = CSS_Color.MainColor, + TextSize = TextSize.text16, + TextID = StringId.Close, + }; + contentView.AddChidren(btnConfirm); + dialog.Show(); + btnConfirm.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + + } } } -- Gitblit v1.8.0