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/BindingResidence/WellcomToHomeForm.cs | 145 ++++++++++++++++++++++++------------------------
1 files changed, 73 insertions(+), 72 deletions(-)
diff --git a/HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs b/HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs
index 187c6d5..95ca302 100644
--- a/HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs
+++ b/HDL_ON/UI/BindingResidence/WellcomToHomeForm.cs
@@ -1,72 +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();
-
- //涓棿鐧借壊鍖哄煙
- 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();
- };
- }
- }
-}
+锘縰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