From a6e32221aa4bc5019a066fad90c4955064647cae Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 10 七月 2023 14:16:00 +0800
Subject: [PATCH] 视频门锁功能记录

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs
index b4e06aa..a66d664 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs
@@ -1,5 +1,6 @@
 锘縰sing System;
 using System.Collections.Generic;
+using HDL_ON.Entity;
 using Shared;
 namespace HDL_ON.UI.UI2.Intelligence.Automation
 {
@@ -49,9 +50,33 @@
             delayView.btnIcon.UnSelectedImagePath = "LogicIcon/time.png";
             //viewLayout.AddChidren(delayView.FLayoutView());
 
-            ////鍔熻兘
-            ///浜у搧缁忕悊鍚涚剷瑕佹眰锛岃澶囧姛鑳界Щ鍒拌繖閲屻��<2022-3-7>
-            new FunTpye(LogicMethod.target_if).FunTypeView(viewLayout, securityView.frameLayout.Bottom, 2);
+
+
+            var colorfulRgbList = FunctionList.List.GetLightList().FindAll((obj) => obj.spk == SPK.LightRGB
+            && obj.GetAttributes().Contains(FunctionAttributeKey.Colorful));
+            if (colorfulRgbList.Count > 0)
+            {
+                LogicView.SelectTypeView seriesView = new LogicView.SelectTypeView();
+                seriesView.frameLayout.Y = securityView.frameLayout.Bottom;
+                seriesView.btnText.TextID = StringId.HorseRaceLamp;
+                seriesView.btnIcon.UnSelectedImagePath = "FunctionIcon/Icon/SeriesIcon.png";
+                viewLayout.AddChidren(seriesView.FLayoutView());
+                seriesView.btnClick.MouseUpEventHandler = (sender, e) =>
+                {
+                    var settingPage = new LogicSeriesSettingPage();
+                    MainPage.BasePageView.AddChidren(settingPage);
+                    settingPage.LoadPage(colorfulRgbList);
+                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+
+                };
+                new FunTpye(LogicMethod.target_if).FunTypeView(viewLayout, seriesView.frameLayout.Bottom, 3);
+            }
+            else
+            {
+                ////鍔熻兘
+                ///浜у搧缁忕悊鍚涚剷瑕佹眰锛岃澶囧姛鑳界Щ鍒拌繖閲屻��<2022-3-7>
+                new FunTpye(LogicMethod.target_if).FunTypeView(viewLayout, securityView.frameLayout.Bottom, 2);
+            }
             #endregion
 
             #region  鎵�鏈夌偣鍑讳簨浠�

--
Gitblit v1.8.0