From 6d73bf6e816570291865674bef8bce8972e4de3f Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期三, 01 十二月 2021 16:32:57 +0800
Subject: [PATCH] 2021-12-01-01

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeHorizonView.cs |  100 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 100 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeHorizonView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeHorizonView.cs
new file mode 100644
index 0000000..7d60b83
--- /dev/null
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/TimeHorizonView.cs
@@ -0,0 +1,100 @@
+锘縰sing System;
+using Shared;
+namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
+{
+    public class TimeHorizonView : FrameLayout
+    {
+        /// <summary>
+        /// 涓绘帶浠�
+        /// </summary>
+        public FrameLayout frameLayout = new FrameLayout
+        {
+            Y = Application.GetRealHeight(460),
+            Height = Application.GetRealHeight(187),
+            Width = Application.GetRealWidth(343),
+            X = Application.GetRealWidth(16),
+            BackgroundColor = CSS.CSS_Color.view,
+            Radius=(uint)Application.GetRealHeight(12),
+        };
+        /// <summary>
+        /// 鏍囬Btn
+        /// </summary>
+        public Button btnTitle = new Button
+        {
+            TextID = StringId.timeHorizon,
+            TextSize = TextSize.text16,
+            TextColor = CSS.CSS_Color.textColor,
+            IsBold = true,
+            Width = Application.GetRealWidth(343-(52 + 4 + 10)*2),
+            Height = Application.GetRealHeight(22),
+            Y = Application.GetRealHeight(15),
+            X = Application.GetRealWidth(52 + 4 + 10)
+        };
+        /// <summary>
+        /// 鍙栨秷Btn
+        /// </summary>
+        public Button btnCancel = new Button
+        {
+            TextID = StringId.cancelSelected,
+            TextSize = TextSize.text14,
+            TextColor = CSS.CSS_Color.textCancelColor,
+            Width = Application.GetRealWidth(52),
+            Height = Application.GetRealHeight(32),
+            Y = Application.GetRealHeight(10),
+            X = Application.GetRealWidth(4)
+        };
+        /// <summary>
+        /// 纭畾Btn
+        /// </summary>
+        public Button btnConfirm = new Button
+        {
+            TextID = StringId.confirmSelected,
+            TextSize = TextSize.text14,
+            TextColor = CSS.CSS_Color.textConfirmColor,
+            Width = Application.GetRealWidth(52),
+            Height = Application.GetRealHeight(32),
+            X = Application.GetRealWidth(343 - 4 - 52),
+            Y = Application.GetRealHeight(10),
+        };
+        /// <summary>
+        ///  绾㈣壊鎻愮ず鏂囨湰
+        /// </summary>
+        public Button btnTip = new Button
+        {
+            TextID = StringId.timeTipText,
+            TextSize = TextSize.text12,
+            TextColor = CSS.CSS_Color.textRedColor,
+            Width = Application.GetRealWidth(340 - 20-20),
+            Height = Application.GetRealHeight(24),//17
+            X = Application.GetRealWidth(20),
+            Y = Application.GetRealHeight(58),
+            TextAlignment = TextAlignment.CenterLeft,
+            IsMoreLines=true,
+        };
+
+        /// <summary>
+        /// View鐨勬柟娉�
+        /// </summary>
+        /// <returns></returns>
+        public void FLayoutView(FrameLayout fLayout)
+        {
+            frameLayout.AddChidren(btnTitle);
+            frameLayout.AddChidren(btnTip);
+            frameLayout.AddChidren(btnCancel);
+            frameLayout.AddChidren(btnConfirm);
+            fLayout.AddChidren(frameLayout);
+            ////鐣岄潰鐐瑰嚮浜嬩欢
+            //fLayout.MouseUpEventHandler += (sender, e1) =>
+            //{
+            //    //绉婚櫎fLayout鐣岄潰
+            //    fLayout.RemoveFromParent();
+            //};
+            //鍙栨秷鐐瑰嚮浜嬩欢
+            btnCancel.MouseUpEventHandler += (sender, e2) =>
+            {
+                //绉婚櫎fLayout鐣岄潰
+                fLayout.RemoveFromParent();
+            };
+        }
+    }
+}

--
Gitblit v1.8.0