| | |
| | | }; |
| | | bodyView.AddChidren(topView); |
| | | |
| | | btnSceneTilte = new Button() |
| | | if (DB_ResidenceData.residenceData.GatewayType == 0) |
| | | { |
| | | 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); |
| | | btnSceneTilte = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(30), |
| | | //Width = Application.GetRealWidth(170), |
| | | Height = Application.GetRealHeight(25), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.HeadlineFontSize, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextID = StringId.Scenes, |
| | | IsSelected = true |
| | | }; |
| | | topView.AddChidren(btnSceneTilte); |
| | | btnAutomationTitle = new Button(); |
| | | |
| | | btnAutomationTitle = new Button() |
| | | } |
| | | else |
| | | { |
| | | 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.Automation, |
| | | }; |
| | | topView.AddChidren(btnAutomationTitle); |
| | | |
| | | 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); |
| | | |
| | | btnAutomationTitle = 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.Automation, |
| | | }; |
| | | topView.AddChidren(btnAutomationTitle); |
| | | } |
| | | var btnAddIconBg = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337), |
| | |
| | | }; |
| | | view.AddChidren(btnZone); |
| | | |
| | | |
| | | Button btnSettingIcon; |
| | | btnSettingIcon = new Button() |
| | | { |
| | |
| | | //btnAddIcon.RemoveFromParent(); |
| | | automationPage = new FrameLayout(); |
| | | contentPageView.AddChidren(automationPage); |
| | | HDL_ON.UI.UI2.Intelligence.Automation.MainView.automationPage = automationPage; |
| | | HDL_ON.UI.UI2.Intelligence.Automation.MainView.MainShow(); |
| | | |
| | | UI2.Intelligence.Automation.MainView.automationPage = automationPage; |
| | | UI2.Intelligence.Automation.MainView.MainShow(); |
| | | } |
| | | #endregion |
| | | } |
| | |
| | | else |
| | | { |
| | | //跳转到逻辑界面 |
| | | HDL_ON.UI.UI2.Intelligence.Automation.MainView.SkipAddLogicPage(); |
| | | UI2.Intelligence.Automation.MainView.SkipAddLogicPage(); |
| | | } |
| | | }; |
| | | } |