Пример #1
0
 public menuForm()
 {
     InitializeComponent();
     this.newAirplaneForm        = new newAirplaneForm();
     this.editAirplaneForm       = new editAirplaneForm();
     this.controllerAirplaneForm = new controllerAirplaneForm();
     this.statsForm = new statsForm();
 }
Пример #2
0
 private void button_airplaneController_Click(object sender, EventArgs e)
 {
     if (this.game.getMap().getAirplanes().Count == 0)
     {
         MessageBox.Show("No airplanes on the map.");
     }
     else
     {
         this.controllerAirplaneForm.Dispose();
         this.controllerAirplaneForm = new controllerAirplaneForm(this.game);
         this.controllerAirplaneForm.Show();
     }
 }