From 439d05654176664111063362ac5c98c772910faa Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期四, 12 九月 2024 12:05:01 +0800
Subject: [PATCH] 异常信息优化
---
HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
index c5c07c0..8893874 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
@@ -83,6 +83,7 @@
//涓嶆槸A缃戝叧鎴栬�呮槸鎴愬憳 鍙厑璁告坊鍔犲満鏅殣钘忚嚜鍔ㄥ寲
var HideAutoPage = DB_ResidenceData.Instance.CurrentRegion.isOtherShare;
+ bool hideSecurity = true;
//鍒ゆ柇鏄惁闇�瑕侀殣钘忚嚜鍔ㄥ寲
if (HideAutoPage)
{
@@ -159,7 +160,6 @@
var otherWidth = (Application.GetRealWidth(375) - btnAutomationTitle.Width) / 2;
btnAutomationTitle.X = otherWidth;
-
btnSceneTilte = new Button()
{
Y = Application.GetRealHeight(40),
@@ -174,7 +174,6 @@
};
topView.AddChidren(btnSceneTilte);
-
btnSecurityTitle = new Button()
{
X = btnAutomationTitle.Right,
@@ -188,6 +187,7 @@
TextID = StringId.anfang,
};
topView.AddChidren(btnSecurityTitle);
+ hideSecurity = false;
}
else
{
@@ -253,7 +253,10 @@
{
LoadAutomationPageView();
}
- LoadSecurityPageView();
+ if (!hideSecurity)
+ {
+ LoadSecurityPageView();
+ }
LoadEventList();
}
@@ -727,6 +730,10 @@
{
btnAddIcon.MouseUpEventHandler = (sender, e) =>
{
+ if (btnSecurityTitle != null && btnSecurityTitle.IsSelected)
+ {
+ return;
+ }
if (!btnAutomationTitle.IsSelected)
{
//濡傛灉鏄垚鍛�
--
Gitblit v1.8.0