From 6ba43603ccd8868a4ee73e9b978b7cb20a5b2c52 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 04 十二月 2020 14:24:53 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/WJC'

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs
new file mode 100644
index 0000000..69e89d1
--- /dev/null
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicView/brightnessView.cs
@@ -0,0 +1,143 @@
+锘縰sing System;
+using Shared;
+namespace HDL_ON.UI.UI2.Intelligence.Automation.LogicView
+{
+    public class BrightnessView
+    {
+        /// <summary>
+        /// 涓绘帶浠�
+        /// </summary>
+        public FrameLayout frameLayout = new FrameLayout
+        {
+            Y = Application.GetRealHeight(467),
+            Height = Application.GetRealHeight(56 + 124),
+            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(17),
+            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 btn_subtract = new Button
+        {
+            Width = Application.GetMinRealAverage(24),
+            Height = Application.GetMinRealAverage(24),
+            X = Application.GetRealWidth(26),
+            Y = Application.GetRealHeight(118),
+            UnSelectedImagePath = "LogicIcon/-.png",
+        };
+        /// <summary>
+        /// 鍥炬爣-鎵╁ぇ鐑敭
+        /// </summary>
+        public Button btn_subtract_click = new Button
+        {
+            Width = Application.GetMinRealAverage(24+20),
+            Height = Application.GetMinRealAverage(24),
+            X = Application.GetRealWidth(26-20),
+            Y = Application.GetRealHeight(118),
+
+        };
+        public DiyImageSeekBar seekBarVol = new DiyImageSeekBar
+        {
+            Y = Application.GetRealHeight(103),//杩涘害鏉$埗鎺т欢Y鍧愭爣
+            X = Application.GetRealWidth(62-10),//杩涘害鏉鍧愭爣
+            SeekBarPadding=Application.GetRealHeight(10),//杩涘害鏉″疄闄呴暱搴�=244-10*2(鍐呰竟璺�);
+            Width = Application.GetRealWidth(240),//杩涘害鏉$殑闀垮害
+            Height = Application.GetRealHeight(54),//杩涘害鏉$埗鎺т欢楂樺害
+            IsProgressTextShow = true,//鏄剧ず鐧惧垎姣�
+            IsClickable = true,//杩涘害鏉℃槸鍚︽粦鍔�
+            ProgressBarColor =CSS.CSS_Color.textConfirmColor,//閫変腑杩涘害鏉¢鑹�
+            ThumbImagePath = "LogicIcon/point.png",//杩涘害鏉℃寜閽浘鏍�
+            ThumbImageHeight = Application.GetRealHeight(54),//杩涘害鏉℃寜閽浘鏍囩殑楂樺害锛堥粯璁ゆ鏂瑰舰锛氬鍜岄珮涓�鏍凤級
+            ProgressTextColor = CSS.CSS_Color.textColor,
+            ProgressTextSize = 10,//鏄剧ず鐧惧垎姣斿瓧浣撳ぇ灏�
+            SeekBarViewHeight = Application.GetRealHeight(8),//杩涘害鏉$殑楂樺害
+        };
+        /// <summary>
+        /// 鍥炬爣+
+        /// </summary>
+        public Button btn_add = new Button
+        {
+            Width = Application.GetMinRealAverage(24),
+            Height = Application.GetMinRealAverage(24),
+            X = Application.GetRealWidth(294),
+            Y = Application.GetRealHeight(118),
+            UnSelectedImagePath = "LogicIcon/+.png",
+
+        };
+        /// <summary>
+        /// 鍥炬爣+鎵╁ぇ鐑敭
+        /// </summary>
+        public Button btn_add_click = new Button
+        {
+            Width = Application.GetMinRealAverage(24+20),
+            Height = Application.GetMinRealAverage(24),
+            X = Application.GetRealWidth(294),
+            Y = Application.GetRealHeight(118),
+        };
+        /// <summary>
+        /// View鐨勬柟娉�
+        /// </summary>
+        /// <param name="fLayout"></param>
+        public void FLayoutView(FrameLayout fLayout)
+        {
+            fLayout.AddChidren(frameLayout);
+            frameLayout.AddChidren(btnTitle);
+            frameLayout.AddChidren(btnCancel);
+            frameLayout.AddChidren(btnConfirm);
+            frameLayout.AddChidren(btn_subtract);
+            frameLayout.AddChidren(btn_subtract_click);
+            frameLayout.AddChidren(seekBarVol);
+            frameLayout.AddChidren(btn_add);
+            frameLayout.AddChidren(btn_add_click);
+            //鍙栨秷鐐瑰嚮浜嬩欢
+            btnCancel.MouseUpEventHandler += (sender, e1) =>
+            {
+                //绉婚櫎fLayout鐣岄潰
+                fLayout.RemoveFromParent();
+            };
+
+        }
+    }
+}

--
Gitblit v1.8.0