From f1e8c2cde53050ffe78ef3b13346ba77ca65110c Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 03 十二月 2020 17:55:52 +0800
Subject: [PATCH] 2020-12-03-2

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SwitchView.cs |   75 +++++++++++++++++++++++++++++++++++--
 1 files changed, 71 insertions(+), 4 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
index 881aa54..a738a25 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SwitchView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/SwitchView.cs
@@ -13,9 +13,9 @@
             BackgroundColor = CSS.CSS_Color.view,
             Y = Application.GetRealHeight(515),
             X = Application.GetRealWidth(16),
-            Height = Application.GetRealHeight(44*44),
+            Height = Application.GetRealHeight(44 * 44),
             Width = Application.GetRealWidth(343),
-            Radius=(uint)Application.GetRealHeight(12)
+            Radius = (uint)Application.GetRealHeight(12)
         };
         /// <summary>
         /// 鍙栨秷
@@ -25,7 +25,7 @@
             TextAlignment = TextAlignment.Center,
             TextSize = TextSize.text16,
             TextColor = CSS.CSS_Color.textRedColor,
-            TextID=StringId.cancelSelected,
+            TextID = StringId.cancelSelected,
             Y = Application.GetRealHeight(611),
             X = Application.GetRealWidth(16),
             Height = Application.GetRealHeight(44),
@@ -34,17 +34,84 @@
             Radius = (uint)Application.GetRealHeight(12)
         };
         /// <summary>
+        /// 寮�
+        /// </summary>
+        public Button btnOn = new Button
+        {
+            TextAlignment = TextAlignment.Center,
+            TextSize = LogicView.TextSize.text16,
+            TextColor = CSS.CSS_Color.textCancelColor,
+            TextID = StringId.onLogic,
+            Height = Application.GetRealHeight(44),
+            Width = Application.GetRealWidth(343),
+
+        };
+        /// <summary>
+        /// 绾�
+        /// </summary>
+        public Button btnLine = new Button
+        {
+            Height = 1,
+            BackgroundColor = CSS.CSS_Color.viewLine,
+            Y = Application.GetRealHeight(43),
+        };
+        /// <summary>
+        /// 鍏�
+        /// </summary>
+        public Button btnOff = new Button
+        {
+            Y = Application.GetRealHeight(44),
+            TextAlignment = TextAlignment.Center,
+            TextSize = LogicView.TextSize.text16,
+            TextColor = CSS.CSS_Color.textCancelColor,
+            TextID = StringId.offLogic,
+            Height = Application.GetRealHeight(44),
+            Width = Application.GetRealWidth(343),
+        };
+        /// <summary>
+        /// 绾�1
+        /// </summary>
+        public Button btnLine1 = new Button
+        {
+            Height = 1,
+            BackgroundColor = CSS.CSS_Color.viewLine,
+            Y = Application.GetRealHeight(43 + 44),
+        };
+        /// <summary>
+        /// 鏆傚仠
+        /// </summary>
+        public Button btnStop = new Button
+        {
+            Y = Application.GetRealHeight(44 + 44),
+            TextAlignment = TextAlignment.Center,
+            TextSize = LogicView.TextSize.text16,
+            TextColor = CSS.CSS_Color.textCancelColor,
+            TextID = StringId.stop,
+            Height = Application.GetRealHeight(44),
+            Width = Application.GetRealWidth(343),
+        };
+
+        /// <summary>
         /// View鐨勬柟娉�
         /// </summary>
         ///  <param name="frame">鐖舵帶浠�</param>
         /// <param name="i">鏄剧ずView鏁伴噺</param>
         /// <returns></returns>
-        public void FLayoutView(FrameLayout frame,int i)
+        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);
+            frameLayout.AddChidren(btnOn);
+            frameLayout.AddChidren(btnLine);
+            frameLayout.AddChidren(btnOff);
+            if (i > 2)
+            {
+                /// 鍒ゆ柇鏄惁瑕佹槸鏄剧ず"鏆傚仠"鎸夐挳
+                frameLayout.AddChidren(btnLine1);
+                frameLayout.AddChidren(btnStop);
+            }
             btnCancel.MouseUpEventHandler += (sender1, e1) =>
             {
                 frame.RemoveFromParent();

--
Gitblit v1.8.0