From ea0b1e8e5f43c5fd0a7d479e25ede3b8cbea464a Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 02 十二月 2024 17:17:19 +0800 Subject: [PATCH] tcp;可视对讲; --- HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs | 32 +++++++++++++++++++++++++++++--- 1 files changed, 29 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..52ec4a5 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,34 @@ 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)); + //var seriesList = FunctionList.List.GetSeries(); + if (colorfulRgbList.Count > 0 || FunctionList.List.GetSeries().Count>0) + { + LogicView.SelectTypeView seriesView = new LogicView.SelectTypeView(); + seriesView.frameLayout.Y = securityView.frameLayout.Bottom; + seriesView.btnText.TextID = StringId.HorseRaceLamp; + seriesView.btnIcon.UnSelectedImagePath = "FunctionIcon/Icon/HorseRaceLampIcon.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