From 373376967321bd172ed9dce8835a5b7ce138470b Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期四, 04 七月 2024 11:08:48 +0800 Subject: [PATCH] 证书更新 --- HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs index c4219e2..575dadd 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs @@ -878,11 +878,22 @@ void LoadEvent_ChangeFunctionList() { btnAddFunctionTitle.MouseUpEventHandler = (sender, e) => { - //var sefp = new SceneFunctionListChoosePage(scene, refreshFunctionRowAction); - var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction); - MainPage.BasePageView.AddChidren(sefp); - sefp.LoadPage(); - MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + if (DB_ResidenceData.Instance.HomeGateway.isSupportSceneEnableAutomation) + { + //var sefp =new SceneFunctionListChoosePage(scene,refreshFunctionRowAction); + var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction); + MainPage.BasePageView.AddChidren(sefp); + sefp.LoadPage(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + } + else + { + var sefp = new SceneFunctionListChoosePage(scene, refreshFunctionRowAction); + //var sefp = new SceneTargetTypeChoosePage(scene, refreshFunctionRowAction); + MainPage.BasePageView.AddChidren(sefp); + sefp.LoadPage(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + } }; } -- Gitblit v1.8.0