From f7d3739023f4d04a4ed2c30c13d9abf8da210da7 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 25 七月 2022 13:58:49 +0800 Subject: [PATCH] 兼容俄语 --- HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs index abf4b91..3c52457 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs @@ -63,7 +63,7 @@ case SPK.LightRGB: case SPK.LightRGBW: case SPK.LightCCT: - //case SPK.LightSwitch: + case SPK.LightSwitch: //绐楀笜 case SPK.CurtainSwitch: case SPK.CurtainRoller: @@ -213,7 +213,25 @@ //姣背娉紶鎰熷櫒(鑷爺鍖楅偖) case SPK.SenesorMegahealth: { + int intValue =0; + if (edit) + { + Input inputs = Logic.currlogic.input[index]; + var dicList = inputs.condition; + foreach (var dic in dicList) + { + if (dic["key"] == "target_status") + { + intValue = 1; + } + else + { + intValue = 2; + } + break; + } + } LogicView.FunTypeView view1= new LogicView.FunTypeView(); view1.btnText.TextID = StringId.diedaobaojing; view1.btnState.Name = Language.StringByID(StringId.diedaobaojing); @@ -228,6 +246,16 @@ view2.btnText.TextID = StringId.yourenbaojing; view2.btnState.Name = Language.StringByID(StringId.yourenbaojing); fLayout.AddChidren(view2.FLayoutView()); + + if (intValue==1) { + view2.frameLayout.Visible = false; + + } + if (intValue == 2) + { + view2.frameLayout.Y = Application.GetRealHeight(0); + } + view2.btnClick.MouseUpEventHandler += (sender, e) => { DeviceView(device, view2.btnState, StringId.youren, StringId.wuren, 2); -- Gitblit v1.8.0