| | |
| | | |
| | | #endregion |
| | | |
| | | sceneFunctionView = new VerticalScrolViewLayout() { |
| | | sceneFunctionView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = floorChangeView.Bottom, |
| | | Height = Application.GetRealHeight(667 - 64 - 49 - 52 + 30), |
| | | }; |
| | |
| | | void LoadAutomationPageView() |
| | | { |
| | | //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(); |
| | | |
| | | Button btnTipNot = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(120), |
| | | Width = Application.GetRealWidth(180), |
| | | Height = Application.GetRealWidth(180), |
| | | UnSelectedImagePath = "TipNot.png", |
| | | }; |
| | | automationPage.AddChidren(btnTipNot); |
| | | |
| | | Button btnTipNotText = new Button() |
| | | { |
| | | Y = btnTipNot.Bottom, |
| | | Height = Application.GetRealWidth(100), |
| | | TextID = StringId.TipNotOpen, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | }; |
| | | automationPage.AddChidren(btnTipNotText); |
| | | } |
| | | #endregion |
| | | } |
| | |
| | | btnSceneTilte.TextSize = CSS_FontSize.HeadlineFontSize; |
| | | btnAutomationTitle.IsSelected = false; |
| | | btnAutomationTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | |
| | | contentPageView.PageIndex = 0; |
| | | }; |
| | | //逻辑点击事件 |
| | | btnAutomationTitle.MouseUpEventHandler = (sender, e) => { |
| | | if (btnAutomationTitle.IsSelected) |
| | | { |
| | |
| | | btnSceneTilte.IsSelected = false; |
| | | btnSceneTilte.TextSize = CSS_FontSize.TextFontSize; |
| | | contentPageView.PageIndex = 1; |
| | | |
| | | }; |
| | | } |
| | | #endregion |
| | |
| | | { |
| | | btnAddIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | Action action = () => { |
| | | if (!btnAutomationTitle.IsSelected) |
| | | { |
| | | Action action = () => |
| | | { |
| | | LoadSceneFunctionControlZone(); |
| | | }; |
| | | var aep = new NewSceneMenuListPage(action); |
| | | MainPage.BasePageView.AddChidren(aep); |
| | | aep.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | else |
| | | { |
| | | //跳转到逻辑界面 |
| | | HDL_ON.UI.UI2.Intelligence.Automation.MainView.SkipAddLogicPage(); |
| | | } |
| | | }; |
| | | } |
| | | |
| | |
| | | btnName.MouseUpEventHandler = eventHandler; |
| | | btnZone.MouseUpEventHandler = eventHandler; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |