From a1b0a0e9ac707571a436272f41e3ee5aeef5aee2 Mon Sep 17 00:00:00 2001
From: nigel wei <nigelwei@192.168.5.223>
Date: 星期六, 31 八月 2024 19:10:47 +0800
Subject: [PATCH] 金茂定制备份

---
 HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 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..abce243 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;
+                }
             };
         }
 
@@ -927,7 +938,7 @@
                 {
                     CropImageCallBack(imagePath);
 
-                }, imageName, 4, 3);
+                }, imageName, 4, 3, 0);
 
                 //}
                 pictureOptionView.Parent.RemoveFromParent();
@@ -946,7 +957,7 @@
                 CropImage.SelectPicture((imagePath) =>
                 {
                     CropImageCallBack(imagePath);
-                }, imageName, 4, 3);
+                }, imageName, 4, 3,0);
 
 
                 //if (pageTitleId == StringId.EditScene)

--
Gitblit v1.8.0