Beispiel #1
0
        private void btnWijzigenLuchthaven_Click(object sender, EventArgs e)
        {

            try
            {

                frmAirportManagement AirportManagement = new frmAirportManagement(true, airports[lstLuchthaven.SelectedIndex]);
                if (AirportManagement.ShowDialog() == DialogResult.OK)
                {
                    airports[lstLuchthaven.SelectedIndex] = (AirportManagement.Airport);
                    LoadListboxes();
                }
            }
            catch (Exception ee)
            {
                MessageBox.Show("Select an airport!");
            }

        }
Beispiel #2
0
 private void btnToevoegenLuchthaven_Click(object sender, EventArgs e)
 {
     frmAirportManagement AirportManagement = new frmAirportManagement();
     if (AirportManagement.ShowDialog() == DialogResult.OK)
     {
         airports.Add(AirportManagement.Airport);
         LoadListboxes();
     }
 }