From 43b0d5870d528f23ecd6aeceb6cfd4325188b46f Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 01 七月 2021 15:50:43 +0800 Subject: [PATCH] Revert "1" --- HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs b/HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs new file mode 100644 index 0000000..95ca302 --- /dev/null +++ b/HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs @@ -0,0 +1,73 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; +using HDL_ON.UI.CSS; +using Shared; + +namespace HDL_ON.UI +{ + /// <summary> + /// 娆㈣繋鍥炲鐨勭晫闈� + /// </summary> + public class WellcomToHomeForm + { + /// <summary> + /// 鏄剧ず娆㈣繋鍥炲鐨勫脊绐楃晫闈� + /// </summary> + public void ShowForm() + { + //鏁翠釜鐣岄潰鐨勭伆鑹茶儗鏅� + var frameBack = new Dialog(); + frameBack.Show(); + + //涓棿鐧借壊鍖哄煙 + var frameWite = new FrameLayout(); + frameWite.Y = Application.GetRealHeight(223); + frameWite.Height = Application.GetRealHeight(245); + frameWite.Width = Application.GetRealWidth(288); + frameWite.BackgroundColor = CSS.CSS_Color.MainBackgroundColor; + frameWite.Radius = (uint)Application.GetRealWidth(12); + frameWite.Gravity = Gravity.CenterHorizontal; + frameBack.AddChidren(frameWite); + + //Icon鍥炬爣 + var picIcon = new Button(); + picIcon.Y = Application.GetRealHeight(152); + picIcon.Height = Application.GetRealWidth(160); + picIcon.Width = Application.GetRealWidth(160); + picIcon.Gravity = Gravity.CenterHorizontal; + picIcon.UnSelectedImagePath = "oRobot.png"; + frameBack.AddChidren(picIcon); + + //娆㈣繋鍥炲 + var btnText = new Button(); + btnText.Y = Application.GetRealHeight(98); + btnText.Height = Application.GetRealHeight(24); + btnText.TextSize = 16; + btnText.TextAlignment = TextAlignment.Center; + btnText.TextColor = CSS.CSS_Color.MainColor; + btnText.TextID = StringId.WellComBackHome; + frameWite.AddChidren(btnText); + + //纭 + var btnOk = new Button(); + btnOk.Y = btnText.Bottom + Application.GetRealHeight(48); + btnOk.Height = Application.GetRealHeight(44); + btnOk.Width = Application.GetRealWidth(220); + btnOk.TextSize = 16; + btnOk.IsBold = true; + btnOk.TextAlignment = TextAlignment.Center; + btnOk.TextColor = CSS.CSS_Color.MainBackgroundColor; + btnOk.BackgroundColor = CSS.CSS_Color.MainColor; + btnOk.Gravity = Gravity.CenterHorizontal; + btnOk.Radius = (uint)Application.GetRealHeight(22); + btnOk.TextID = StringId.Confirm; + frameWite.AddChidren(btnOk); + + btnOk.MouseUpEventHandler += (sender, e) => + { + frameBack.Close(); + }; + } + } +} -- Gitblit v1.8.0