示例#1
0
文件: MainForm.cs 项目: Mortion/Uses
        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!");
            }
        }
示例#2
0
文件: MainForm.cs 项目: Mortion/Uses
 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();
     }
 }