From a46cd0adb5af29e8a9cf47c219475acaedfcf839 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 01 十二月 2020 17:09:00 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/WJC'

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SwitchView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SwitchView.cs
new file mode 100644
index 0000000..881aa54
--- /dev/null
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SwitchView.cs
@@ -0,0 +1,55 @@
+锘縰sing System;
+using Shared;
+namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
+{
+    public class SwitchView
+    {
+
+        /// <summary>
+        /// 涓绘帶浠�
+        /// </summary>
+        public FrameLayout frameLayout = new FrameLayout
+        {
+            BackgroundColor = CSS.CSS_Color.view,
+            Y = Application.GetRealHeight(515),
+            X = Application.GetRealWidth(16),
+            Height = Application.GetRealHeight(44*44),
+            Width = Application.GetRealWidth(343),
+            Radius=(uint)Application.GetRealHeight(12)
+        };
+        /// <summary>
+        /// 鍙栨秷
+        /// </summary>
+        public Button btnCancel = new Button
+        {
+            TextAlignment = TextAlignment.Center,
+            TextSize = TextSize.text16,
+            TextColor = CSS.CSS_Color.textRedColor,
+            TextID=StringId.cancelSelected,
+            Y = Application.GetRealHeight(611),
+            X = Application.GetRealWidth(16),
+            Height = Application.GetRealHeight(44),
+            Width = Application.GetRealWidth(343),
+            BackgroundColor = CSS.CSS_Color.view,
+            Radius = (uint)Application.GetRealHeight(12)
+        };
+        /// <summary>
+        /// View鐨勬柟娉�
+        /// </summary>
+        ///  <param name="frame">鐖舵帶浠�</param>
+        /// <param name="i">鏄剧ずView鏁伴噺</param>
+        /// <returns></returns>
+        public void FLayoutView(FrameLayout frame,int i)
+        {
+            frameLayout.Y = Application.GetRealHeight(603 - (44 * i));
+            frameLayout.Height = Application.GetRealHeight(44 * i);
+            frame.AddChidren(frameLayout);
+            frame.AddChidren(btnCancel);
+            btnCancel.MouseUpEventHandler += (sender1, e1) =>
+            {
+                frame.RemoveFromParent();
+            };
+
+        }
+    }
+}

--
Gitblit v1.8.0