private void Window_Loaded(object sender, RoutedEventArgs e) { _mieaPacket = new MieaPacket(); _mapHelper = new MapHelper(Grd, ScrollViewer, 5); _processingLoop = new ProcessingLoop(); _visualObjectHelper = new VisualObjectHelper(PlotterVisualObject); _routeHelper = RouteHelper.GetInstance(); EventsHelper.DebugNumberEvent += Debug; ScrollViewer.ScrollToVerticalOffset(2300); ScrollViewer.ScrollToHorizontalOffset(4130); }
public VisualAerodrome(AerodromePoint aerodromePoint) { InitializeComponent(); EventsHelper.ChangeAerodromeEvent += ChangeAerodrome; EventsHelper.ChangeOfSizeEvent += ChangeOfSize; EventsHelper.ChangeNpDEvent += ChangeNpDEvent; _coordinateHelper = new CoordinateHelper(); _routeHelper = RouteHelper.GetInstance(); _aerodromePoint = aerodromePoint; PrepareRouteLine(_aerodromePoint); PrepareAerodrome(_aerodromePoint); }
public VisualPpm(PpmPoint ppmPoint) { InitializeComponent(); _ppmPoint = ppmPoint; NumberInRoute.Text = _ppmPoint.NumberInRoute.ToString(); _coordinateHelper = new CoordinateHelper(); _routeHelper = RouteHelper.GetInstance(); _routeHelper.AddNavigationPoint(_ppmPoint.NavigationPoint); EventsHelper.MenuStatusEvent += StatePpmEvent; EventsHelper.ChangeOfSizeEvent += ChangeOfSize; EventsHelper.ChangeNpDEvent += ChangeNpDEvent; PrepareRouteLine(ppmPoint); ChangeNpDEvent(new ChangeNp() { Action = 1, TypeOfNp = 2, IdNp = 1 }); }