From 8e4dd3cdef1348bcf1285576bb946afb85ce2526 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 08 十二月 2020 17:31:27 +0800 Subject: [PATCH] 增加分享设备的时候,判断当前房间分享设备总数,从而决定是否需要增加或者移除房间分享 --- HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs | 64 ++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs index 461408f..c706c8c 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs @@ -75,6 +75,26 @@ SwitchBrightnessView(fLayout, device, index, edit, 3); } break; + case FunctionType.AC: { + #region 鐣岄潰 + ///寮�鍏� + LogicView.FunTypeView curtainSwitchView = new LogicView.FunTypeView(); + curtainSwitchView.btnText.TextID = StringId.switchLogic; + fLayout.AddChidren(curtainSwitchView.FLayoutView()); + #endregion + #region 鐐瑰嚮浜嬩欢 + ///寮�鍏崇偣鍑讳簨浠� + curtainSwitchView.btnClick.MouseUpEventHandler += (sender, e) => + { + SwitchViewMethod(device, curtainSwitchView.btnState, 2); + }; + if (edit) + { + GetEditState(device, index, curtainSwitchView.btnState, null, null, null); + } + #endregion + } + break; } #endregion @@ -390,6 +410,9 @@ } break; case FunctionType.Dimmer: + case FunctionType.RGB: + case FunctionType.RGBW: + case FunctionType.CCT: { foreach (var dic in dicList) { @@ -445,6 +468,47 @@ } } break; + case FunctionType.TrietexCurtain: + case FunctionType.RollerCurtain: { + + foreach (var dic in dicList) + { + string value = dic["value"]; + switch (dic["key"]) + { + case "on_off": + { + switch (value) + { + case "on": + { + button1.Text = Language.StringByID(StringId.onLogic); + } + break; + case "off": + { + button1.Text = Language.StringByID(StringId.offLogic); + } + break; + case "stop": + { + button1.Text = Language.StringByID(StringId.stop); + } + break; + } + } + break; + case "brightness": + { + + button2.Text = value; + } + break; + } + + } + } + break; } } -- Gitblit v1.8.0