From 263401d40b2d9d2c1b36a24f33d45c5cb7192518 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 23 十二月 2020 15:51:54 +0800
Subject: [PATCH] 20201223-6

---
 HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
index 07c4933..fd70da5 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
@@ -133,15 +133,20 @@
                 Height = Application.GetMinRealAverage(28),
                 UnSelectedImagePath = "Public/AddIcon.png",
             };
-            topView.AddChidren(btnAddIconBg);
-
+            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
+            {
+                topView.AddChidren(btnAddIconBg);
+            }
             btnAddIcon = new Button()
             {
                 X = Application.GetRealWidth(337-20),
                 Width = Application.GetMinRealAverage(28+30),
                 Height = Application.GetMinRealAverage(28+29),
             };
-            topView.AddChidren(btnAddIcon);
+            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
+            {
+                topView.AddChidren(btnAddIcon);
+            }
             #endregion
 
             contentPageView = new PageLayout()
@@ -400,7 +405,10 @@
                     Width = Application.GetRealWidth(32),
                     UnSelectedImagePath = "Public/FuncInfoSetIcon_white.png",
                 };
-                view.AddChidren(btnSettingIcon);
+                if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
+                {
+                    view.AddChidren(btnSettingIcon);
+                }
 
                 Button btnCollection;
                 btnCollection = new Button()
@@ -500,7 +508,6 @@
         /// </summary>
         void LoadAutomationPageView()
         {
-            //btnAddIcon.RemoveFromParent();
             automationPage = new FrameLayout();
             contentPageView.AddChidren(automationPage);
             UI2.Intelligence.Automation.MainView.automationPage = automationPage;

--
Gitblit v1.8.0