| | |
| | | using HDL_ON.Stan; |
| | | using HDL_ON.UI.CSS; |
| | | using HDL_ON.Entity; |
| | | using System; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnSuctionView); |
| | | |
| | | |
| | | |
| | | |
| | | //加载瞬时值 |
| | | var btnInstantaneousValue = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(391), |
| | | Width = Application.GetMinRealAverage(32), |
| | | Height = Application.GetMinRealAverage(32), |
| | | UnSelectedImagePath = "FunctionIcon/EnvironmentalScience/DiagramIconOn.png", |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnInstantaneousValue); |
| | | var btnInstantaneousValueText = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = btnInstantaneousValue.Bottom, |
| | | Width = Application.GetRealWidth(96), |
| | | Height = Application.GetRealHeight(29), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextID = StringId.AlarmDataStatistics, |
| | | IsMoreLines = true |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnInstantaneousValueText); |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | //var page = new SocketPage_InstantaneousValue(function); |
| | | //MainPage.BasePageView.AddChidren(page); |
| | | //page.LoadPage(); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnInstantaneousValue.MouseUpEventHandler = eventHandler; |
| | | btnInstantaneousValueText.MouseUpEventHandler = eventHandler; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |