From 58d4ef9af9c906acf2e9f65a3e65092363c8e1cd Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 24 八月 2023 17:42:49 +0800 Subject: [PATCH] 2023年08月24日17:42:25 --- HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs | 59 ++++++++++++++++++++++++++--------------------------------- 1 files changed, 26 insertions(+), 33 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs index 9c88669..63b9cac 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs @@ -812,15 +812,15 @@ LogicView.FunTypeView switchView = new LogicView.FunTypeView(); switchView.btnText.TextID = StringId.switchLogic; fLayout.AddChidren(switchView.FLayoutView()); - /////闊抽噺 - //LogicView.FunTypeView volView = new LogicView.FunTypeView(); - //volView.frameLayout.Y = switchView.frameLayout.Bottom; - //volView.btnText.TextID = StringId.yinliang; - //fLayout.AddChidren(volView.FLayoutView()); + ///闊抽噺 + LogicView.FunTypeView volView = new LogicView.FunTypeView(); + volView.frameLayout.Y = switchView.frameLayout.Bottom; + volView.btnText.TextID = StringId.yinliang; + fLayout.AddChidren(volView.FLayoutView()); ///淇″彿婧� LogicView.FunTypeView sourceView = new LogicView.FunTypeView(); - sourceView.frameLayout.Y = switchView.frameLayout.Bottom; + sourceView.frameLayout.Y = volView.frameLayout.Bottom; sourceView.btnText.TextID = StringId.xinhaoyuan; fLayout.AddChidren(sourceView.FLayoutView()); @@ -833,22 +833,22 @@ { SwitchViewMethod(device, switchView.btnState, 2); }; - /////闊抽噺鐐瑰嚮浜嬩欢 - //volView.btnClick.MouseUpEventHandler += (sender, e) => - //{ - // selectedState = device.spk + "_volume"; - // //new LogicView.TipPopView { }.InputBox(StringId.volumeMusic, volView.btnState.Text, (value) => - // //{ + ///闊抽噺鐐瑰嚮浜嬩欢 + volView.btnClick.MouseUpEventHandler += (sender, e) => + { + //selectedState = device.spk + "_volume"; + //new LogicView.TipPopView { }.InputBox(StringId.volumeMusic, volView.btnState.Text, (value) => + //{ - // // //鐣岄潰鏄剧ず閫変腑鍊� - // // volView.btnState.Text = value; - // // //鏁版嵁灏佽 - // // AddDictionary("volume", value);//闊抽噺 - // //}, 0, 100); + // //鐣岄潰鏄剧ず閫変腑鍊� + // volView.btnState.Text = value; + // //鏁版嵁灏佽 + // AddDictionary("setvolume", value);//闊抽噺 + //}, 0, 100); - // BrightnessMethod(device, volView.btnState, volView.btnText.Text); + BrightnessMethod(device, volView.btnState, volView.btnText.Text); - //}; + }; ///淇″彿婧愮偣鍑讳簨浠� sourceView.btnClick.MouseUpEventHandler += (sender, e) => @@ -882,7 +882,7 @@ if (edit) { //鏄剧ず缂栬緫涔嬪墠鐨勮澶囩姸鎬� - GetEditDeviceState(device, index, switchView.btnState, sourceView.btnState, null, null); + GetEditDeviceState(device, index, switchView.btnState, volView.btnState, sourceView.btnState, null); } #endregion @@ -1107,19 +1107,6 @@ } break; - case SPK.ElectricalTvHisense: - { - if (id == StringId.onLogic) - { - value = "1"; - } - else - { - value = "0"; - } - } - break; - } //鏁版嵁灏佽 @@ -1169,6 +1156,12 @@ } } break; + case SPK.ElectricalTvHisense: + { + keyVlaue = "set_volume"; + } + break; + } //鏁版嵁灏佽 AddDictionary(keyVlaue, brightnesValue); -- Gitblit v1.8.0