///<summary> ///Method that creates a new WPF flight window. ///</summary> private void OpenFlightWindow(String flightNumber) { FlightWindow fw = new FlightWindow(flightNumber); fw.Show(); //Subscribe to event for the specific flight. SubscribeToFlightEvent(fw); }
///<summary> ///Method that add subscriptions for the class. ///</summary> private void SubscribeToFlightEvent(FlightWindow fw) { fw.Started += OnStartedEventReception; fw.Landed += OnLandedEventReception; fw.ChangedRoute += OnChangedDirectionEventReception; }