private void btnWijzigenVlucht_Click(object sender, EventArgs e) { try { frmFlightManagement FlightManagement = new frmFlightManagement(airplanes, airports, pilots, cabincrew, Flights[lstVluchten.SelectedIndex]); if (FlightManagement.ShowDialog() == DialogResult.OK) { Flights[lstVluchten.SelectedIndex] = (FlightManagement.Flight); LoadListboxes(); } } catch (Exception ee) { MessageBox.Show("Selecteer een vlucht!"); } }
private void btnToevoegenVlucht_Click(object sender, EventArgs e) { frmFlightManagement FlightManagement = new frmFlightManagement(airplanes, airports, pilots, cabincrew); if (FlightManagement.ShowDialog() == DialogResult.OK) { Flights.Add(FlightManagement.Flight); LoadListboxes(); } }