From 9107338c027ceff6b14d80aecce30e449793fff7 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 27 二月 2024 16:04:17 +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