Пример #1
0
 public EditPlane(Introductieproject.Objects.Airplane airplane, Introductieproject.Airport.Airport airport, ScheduleForm sch)
 {
     InitializeComponent();
     this.airplane = airplane;
     this.airport = airport;
     this.sch = sch;
     loadGates();
     loadAirplane();
 }
Пример #2
0
 public NewPlane(Introductieproject.Objects.Airplane airplane, Introductieproject.Airport.Airport airport, ScheduleForm sch)
 {
     InitializeComponent();
     this.airplane = airplane;
     this.airport = airport;
     this.sch = sch;
     loadRunways();
     loadGates();
     loadTypes();
     arrivaldate.CustomFormat = "dd/MM/yyyy HH:mm";
     departuredate.CustomFormat = "dd/MM/yyyy HH:mm";
 }
        private static void showAsyncPopup(Airplane airplane)
        {
            DialogResult res = MessageBox.Show("Vliegtuig met registratie " + airplane.registration + " komt eerder aan bij een gate dan dat deze vrij is, wilt u de gate veranderen?", "Gate bezet", MessageBoxButtons.YesNo);
            if (res == DialogResult.Yes)
            {
                ScheduleForm scheduleForm = new ScheduleForm(airport);
                scheduleForm.selectedAirplane = airplane;
                scheduleForm.loadPLanes();
                Program.mainForm.Invoke((Action)(() => scheduleForm.ShowDialog()));
                scheduleForm.Focus();
            }
            if (res == DialogResult.No)
            {
                airplane.askAgain = false;
            }

            popup = false;
        }
Пример #4
0
 private void planningToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Simulation.Simulation.pauseSimulationToggle();
     ScheduleForm scheduleForm = new ScheduleForm(airport);
     scheduleForm.loadPLanes();
     scheduleForm.Show();
 }