From 452e8cef1c740d18ee398be6971d9952e41dbd4a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 12 四月 2023 16:11:50 +0800
Subject: [PATCH] 1
---
HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs | 72 ++++++++++++++++++++----------------
1 files changed, 40 insertions(+), 32 deletions(-)
diff --git a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
index cc585e6..13115eb 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/IntelligencePage.cs
@@ -86,38 +86,38 @@
//鍒ゆ柇鏄惁闇�瑕侀殣钘忚嚜鍔ㄥ寲
if (HideAutoPage)
{
- if (DB_ResidenceData.Instance.GatewayType == 1)//缃戝叧闇�瑕佸姞杞藉畨闃�--2021-11-28 19:56:53 鍒樻檽杈夊皢瀹夐槻鏀惧叆璇ョ晫闈�
- {
- btnSceneTilte = new Button()
- {
- Y = Application.GetRealHeight(30),
- Width = Application.GetRealWidth(170),
- Height = Application.GetRealHeight(25),
- TextAlignment = TextAlignment.CenterRight,
- TextSize = CSS_FontSize.HeadlineFontSize,
- TextColor = CSS_Color.PromptingColor1,
- SelectedTextColor = CSS_Color.MainColor,
- TextID = StringId.Scenes,
- IsSelected = true
- };
- topView.AddChidren(btnSceneTilte);
+ //if (DB_ResidenceData.Instance.GatewayType == 1)//缃戝叧闇�瑕佸姞杞藉畨闃�--2021-11-28 19:56:53 鍒樻檽杈夊皢瀹夐槻鏀惧叆璇ョ晫闈�
+ //{
+ // btnSceneTilte = new Button()
+ // {
+ // Y = Application.GetRealHeight(30),
+ // Width = Application.GetRealWidth(170),
+ // Height = Application.GetRealHeight(25),
+ // TextAlignment = TextAlignment.CenterRight,
+ // TextSize = CSS_FontSize.HeadlineFontSize,
+ // TextColor = CSS_Color.PromptingColor1,
+ // SelectedTextColor = CSS_Color.MainColor,
+ // TextID = StringId.Scenes,
+ // IsSelected = true
+ // };
+ // topView.AddChidren(btnSceneTilte);
- btnSecurityTitle = new Button()
- {
- X = Application.GetRealWidth(209),
- Y = Application.GetRealHeight(30),
- Width = Application.GetRealWidth(170),
- Height = Application.GetRealHeight(25),
- TextAlignment = TextAlignment.CenterLeft,
- TextSize = CSS_FontSize.TextFontSize,
- TextColor = CSS_Color.PromptingColor1,
- SelectedTextColor = CSS_Color.MainColor,
- TextID = StringId.anfang,
- };
- topView.AddChidren(btnSecurityTitle);
- btnAutomationTitle = new Button();
- }
- else
+ // btnSecurityTitle = new Button()
+ // {
+ // X = Application.GetRealWidth(209),
+ // Y = Application.GetRealHeight(30),
+ // Width = Application.GetRealWidth(170),
+ // Height = Application.GetRealHeight(25),
+ // TextAlignment = TextAlignment.CenterLeft,
+ // TextSize = CSS_FontSize.TextFontSize,
+ // TextColor = CSS_Color.PromptingColor1,
+ // SelectedTextColor = CSS_Color.MainColor,
+ // TextID = StringId.anfang,
+ // };
+ // topView.AddChidren(btnSecurityTitle);
+ // btnAutomationTitle = new Button();
+ //}
+ //else
{
btnSceneTilte = new Button()
@@ -401,6 +401,14 @@
{
foreach (var scene in listScene)
{
+ if(scene == null)
+ {
+ continue;
+ }
+ if(scene.sceneType == SceneType.LightScene)
+ {
+ continue;
+ }
System.Threading.Thread.Sleep(10);
Application.RunOnMainThread(() =>
{
@@ -695,7 +703,7 @@
btnAutomationTitle.TextSize = CSS_FontSize.TextFontSize;
btnSceneTilte.IsSelected = false;
btnSceneTilte.TextSize = CSS_FontSize.TextFontSize;
- contentPageView.PageIndex = 2;
+ contentPageView.PageIndex = contentPageView.ChildrenCount - 1;
};
}
}
--
Gitblit v1.8.0