Exemple #1
0
 void cmdForms_Click(object sender, EventArgs e)
 {
     try  //[JB] Added try/catch
     {
         FormationDialog dlg = new FormationDialog(_mission.FlightGroups[_activeFG].Formation);
         if (dlg.ShowDialog() == DialogResult.OK)
             cboFormation.SelectedIndex = Common.Update(this, cboFormation.SelectedIndex, dlg.Formation);
     }
     catch { MessageBox.Show("Could not load the Formations browser.", "Error"); }
 }
Exemple #2
0
 void cmdForms_Click(object sender, EventArgs e)
 {
     try
     {
         FormationDialog dlg = new FormationDialog(_mission.FlightGroups[_activeFG].Formation);
         if (dlg.ShowDialog() == DialogResult.OK) cboFormation.SelectedIndex = dlg.Formation;
     } catch { MessageBox.Show("The Formations browser could not be loaded." , "Error"); }
 }