From d44d009da78f96fe50e6dc7c1883e79ffb1aff58 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 18 三月 2022 16:42:01 +0800 Subject: [PATCH] 2022=03-18-01 --- HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs index deee2f7..49990a0 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs @@ -42,8 +42,10 @@ sceneView.frameLayout.Y = timeView.frameLayout.Bottom; sceneView.btnText.TextID = StringId.Scenes; sceneView.btnIcon.UnSelectedImagePath = "LogicIcon/scene.png"; - viewLayout.AddChidren(sceneView.FLayoutView()); - + if (MainView.IsGatewayType) + { + viewLayout.AddChidren(sceneView.FLayoutView()); + } //瀹ゅ鍙樺寲 LogicView.SelectTypeView shiwaiView = new LogicView.SelectTypeView(); shiwaiView.frameLayout.Y = sceneView.frameLayout.Bottom; @@ -60,14 +62,15 @@ likiadaodaView.frameLayout.Y = shiwaiView.frameLayout.Bottom; likiadaodaView.btnText.TextID = StringId.likiadaoda; likiadaodaView.btnIcon.UnSelectedImagePath = "LogicIcon/location.png"; - + int count = 0;//杈撳叆绫诲瀷涓暟 if (MainView.IsGatewayType) { + count = 4; viewLayout.AddChidren(likiadaodaView.FLayoutView()); } ////鍔熻兘 ///浜у搧缁忕悊鍚涚剷瑕佹眰锛岃澶囧姛鑳界Щ鍒拌繖閲屻��<2022-3-7> - new FunTpye(LogicMethod.condition_if).FunTypeView(viewLayout, likiadaodaView.frameLayout.Bottom,4); + new FunTpye(LogicMethod.condition_if).FunTypeView(viewLayout, likiadaodaView.frameLayout.Bottom, count); #endregion -- Gitblit v1.8.0