From 780e34b3f06f9709150183711ffddd19f97e070d Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 25 十二月 2020 10:11:19 +0800
Subject: [PATCH] 20201225-3
---
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