From 9bc0ea236cad9e5c86d0d6fe03eabb327b693096 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期三, 11 九月 2024 18:03:16 +0800 Subject: [PATCH] Update SplashActivity.cs --- HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 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..f602898 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs @@ -279,11 +279,6 @@ scene.delay = obj; btnSceneDelayInfo.Text = scene.GetDelayText(); }; - Dictionary<string, string> items = new Dictionary<string, string>(); - items.Add("30", "30s"); - items.Add("60", "1min"); - items.Add("120", "2min"); - items.Add("300", "5min"); new PublicAssmebly().SetSceneDelayDialog( action ,scene.delay); @@ -878,11 +873,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; + } }; } @@ -927,7 +933,7 @@ { CropImageCallBack(imagePath); - }, imageName, 4, 3); + }, imageName, 4, 3, 0); //} pictureOptionView.Parent.RemoveFromParent(); @@ -946,7 +952,7 @@ CropImage.SelectPicture((imagePath) => { CropImageCallBack(imagePath); - }, imageName, 4, 3); + }, imageName, 4, 3,0); //if (pageTitleId == StringId.EditScene) -- Gitblit v1.8.0