| | |
| | | //判断是否需要隐藏自动化 |
| | | if (HideAutoPage) |
| | | { |
| | | if (DB_ResidenceData.Instance.GatewayType == 1)//网关需要加载安防--2021-11-28 19:56:53 刘晓辉将安防放入改界面 |
| | | if (false && DB_ResidenceData.Instance.GatewayType == 1)//网关需要加载安防--2021-11-28 19:56:53 刘晓辉将安防放入改界面 |
| | | { |
| | | btnSceneTilte = new Button() |
| | | { |
| | |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextID = StringId.SecurityCenter, |
| | | TextID = StringId.anfang, |
| | | }; |
| | | topView.AddChidren(btnSecurityTitle); |
| | | btnAutomationTitle = new Button(); |
| | |
| | | }; |
| | | topView.AddChidren(btnSceneTilte); |
| | | btnAutomationTitle = new Button(); |
| | | btnAutomationTitle = new Button(); |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (DB_ResidenceData.Instance.GatewayType == 1)//网关需要加载安防--2021-11-28 19:56:53 刘晓辉将安防放入改界面 |
| | | if (false && DB_ResidenceData.Instance.GatewayType == 1)//网关需要加载安防--2021-11-28 19:56:53 刘晓辉将安防放入改界面 |
| | | { |
| | | btnAutomationTitle = new Button() |
| | | btnAutomationTitle = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | Gravity = Gravity.CenterHorizontal, |
| | |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextID = StringId.SecurityCenter, |
| | | TextID = StringId.anfang, |
| | | }; |
| | | topView.AddChidren(btnSecurityTitle); |
| | | } |
| | |
| | | TextID = StringId.Automation, |
| | | }; |
| | | topView.AddChidren(btnAutomationTitle); |
| | | btnAutomationTitle = new Button(); |
| | | } |
| | | } |
| | | btnAddIconBg = new Button() |
| | |
| | | else if (contentPageView.PageIndex == 0) |
| | | { |
| | | btnAddIconBg.Visible = true; |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | btnSecurityTitle.IsBold = false; |
| | | if (btnSecurityTitle != null) |
| | | { |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | btnSecurityTitle.IsBold = false; |
| | | } |
| | | btnSceneTilte.IsSelected = true; |
| | | btnSceneTilte.TextSize = CSS_FontSize.HeadlineFontSize; |
| | | btnSceneTilte.IsBold = true; |
| | |
| | | else |
| | | { |
| | | btnAddIconBg.Visible = true; |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | btnSecurityTitle.IsBold = false; |
| | | if (btnSecurityTitle != null) |
| | | { |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | btnSecurityTitle.IsBold = false; |
| | | } |
| | | btnAutomationTitle.IsSelected = true; |
| | | btnAutomationTitle.TextSize = CSS_FontSize.HeadlineFontSize; |
| | | btnAutomationTitle.IsBold = true; |
| | |
| | | { |
| | | return; |
| | | } |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | |
| | | if (btnSecurityTitle != null) |
| | | { |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | } |
| | | btnSceneTilte.IsSelected = true; |
| | | btnSceneTilte.TextSize = CSS_FontSize.HeadlineFontSize; |
| | | btnAutomationTitle.IsSelected = false; |
| | |
| | | { |
| | | return; |
| | | } |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | |
| | | if (btnSecurityTitle != null) |
| | | { |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | } |
| | | btnAutomationTitle.IsSelected = true; |
| | | btnAutomationTitle.TextSize = CSS_FontSize.HeadlineFontSize; |
| | | btnSceneTilte.IsSelected = false; |