Example #1
0
 void cmdBackdrop_Click(object sender, EventArgs e)
 {
     try
     {
         BackdropDialog dlg = new BackdropDialog((_mission.IsBop ? Platform.MissionFile.Platform.BoP : Idmr.Platform.MissionFile.Platform.XvT), _mission.FlightGroups[_activeFG].Status1);
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             numBackdrop.Value = dlg.BackdropIndex;	// simply GUI
             cboStatus.SelectedIndex = (int)numBackdrop.Value;	// drives stored value
         }
     }
     catch (ArgumentException x)
     {
         MessageBox.Show(x.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #2
0
 void cmdBackdrop_Click(object sender, EventArgs e)
 {
     try
     {
         BackdropDialog dlg = new BackdropDialog(_mission.FlightGroups[_activeFG].Backdrop, _mission.FlightGroups[_activeFG].GlobalCargo);
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             cboGlobCargo.SelectedIndex = dlg.Shadow;
             numBackdrop.Value = dlg.BackdropIndex;
         }
     }
     catch (ArgumentException x)
     {
         MessageBox.Show(x.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }