From 992cc7d4433f8f9e9b0a930ec095973e056abe1c Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 05 七月 2021 09:42:12 +0800
Subject: [PATCH] 20210705-1 代码备份

---
 HDL_ON/UI/UI2/3-Intelligence/Scene/NewSceneMenuListPage.cs |   73 ++++++++++++++++++++----------------
 1 files changed, 40 insertions(+), 33 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/NewSceneMenuListPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/NewSceneMenuListPage.cs
index 8e94a49..efb7272 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/NewSceneMenuListPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/NewSceneMenuListPage.cs
@@ -63,43 +63,47 @@
             addSceneView.AddChidren(btnAddSceneText);
             #endregion
 
-            #region 鎹曡幏鍦烘櫙
-            FrameLayout catchSceneView = new FrameLayout()
-            {
-                Gravity = Gravity.CenterHorizontal,
-                Y =addSceneView.Bottom,//+ Application.GetRealWidth(10),
-                Width = Application.GetRealWidth(361),
-                Height = Application.GetRealWidth(202),
-                Radius = (uint)Application.GetRealWidth(12),
-            };
-            bodyView.AddChidren(catchSceneView);
 
-            ImageView catchSceneImageView = new ImageView()
+            if (DB_ResidenceData.Instance.GatewayType == 0) { }
+            else
             {
-                Gravity = Gravity.CenterHorizontal,
-                Radius = (uint)Application.GetRealWidth(12),
-                ImagePath = "Intelligence/CreateScene2Bg.png",
-            };
-            catchSceneView.AddChidren(catchSceneImageView);
+                #region 鎹曡幏鍦烘櫙
+                FrameLayout catchSceneView = new FrameLayout()
+                {
+                    Gravity = Gravity.CenterHorizontal,
+                    Y = addSceneView.Bottom,//+ Application.GetRealWidth(10),
+                    Width = Application.GetRealWidth(361),
+                    Height = Application.GetRealWidth(202),
+                    Radius = (uint)Application.GetRealWidth(12),
+                };
+                bodyView.AddChidren(catchSceneView);
 
-            btnCatchSceneBg = new Button()
-            {
-                Radius = (uint)Application.GetRealWidth(12),
-            };
-            catchSceneView.AddChidren(btnCatchSceneBg);
+                ImageView catchSceneImageView = new ImageView()
+                {
+                    Gravity = Gravity.CenterHorizontal,
+                    Radius = (uint)Application.GetRealWidth(12),
+                    ImagePath = "Intelligence/CreateScene2Bg.png",
+                };
+                catchSceneView.AddChidren(catchSceneImageView);
 
-            Button btnCatchSceneText = new Button()
-            {
-                Y = Application.GetRealWidth(126),
-                Height = Application.GetRealWidth(68),
-                TextColor = CSS_Color.MainBackgroundColor,
-                TextSize = CSS_FontSize.EmphasisFontSize_Secondary,
-                TextAlignment = TextAlignment.Center,
-                TextID = StringId.CatchScene,
-            };
-            catchSceneView.AddChidren(btnCatchSceneText);
-            #endregion
+                btnCatchSceneBg = new Button()
+                {
+                    Radius = (uint)Application.GetRealWidth(12),
+                };
+                catchSceneView.AddChidren(btnCatchSceneBg);
 
+                Button btnCatchSceneText = new Button()
+                {
+                    Y = Application.GetRealWidth(126),
+                    Height = Application.GetRealWidth(68),
+                    TextColor = CSS_Color.MainBackgroundColor,
+                    TextSize = CSS_FontSize.EmphasisFontSize_Secondary,
+                    TextAlignment = TextAlignment.Center,
+                    TextID = StringId.CatchScene,
+                };
+                catchSceneView.AddChidren(btnCatchSceneText);
+                #endregion
+            }
 
             /*
             #region 鐢靛奖鍦烘櫙
@@ -150,7 +154,10 @@
         void LoadEventList()
         {
             LoadEvent_SkipAddScenePage();
-            LoadEvent_SkipCatchScenePage();
+            if (DB_ResidenceData.Instance.GatewayType != 0)
+            {
+                LoadEvent_SkipCatchScenePage();
+            }
         }
 
         /// <summary>

--
Gitblit v1.8.0