Пример #1
0
        private void OnDeleteFlightEventRaise(object sender, FlightFieldsEventArgs e)
        {
            Flight flight = _airport.FindByNumber(e.FlightNumber);

            if (flight != null)
            {
                _airport.DeleteFlight(flight);
            }
            else
            {
                _view.PrintError("The flight is not exsist");
            }
        }
Пример #2
0
        private void OnEditFlightEventRaise(object sender, FlightFieldsEventArgs e)
        {
            Flight flight = _airport.FindByNumber(e.FlightNumber);

            _view.Edite(flight);
        }