Exemple #1
0
 private void btnRefit_Click(object sender, EventArgs e)
 {
     if (SelectedFacilities.Any())
     {
         MessageBox.Show("Facilities cannot be refit. Use the upgrade option on the construction queue screen instead.");
     }
     else
     {
         // TODO - refit ships/units (sure, why not let you refit units?)
         MessageBox.Show("Sorry, refitting ships/units is not yet implemented.");
     }
 }
Exemple #2
0
 private void btnUnmothball_Click(object sender, EventArgs e)
 {
     if (SelectedFacilities.Any())
     {
         MessageBox.Show("Facilities cannot be mothballed.");                 // TODO - allow mothballing facilities once they can cost maintenance?
     }
     else if (SelectedVehiclesInSpace.OfType <IUnit>().Any() || SelectedUnitsInCargo.Any())
     {
         MessageBox.Show("Units cannot be mothballed.");                 // TODO - allow mothballing units once they can cost maintenance?
     }
     else
     {
         // TODO - unmothballing ships
         MessageBox.Show("Sorry, mothballing/unmothballing ships is not yet implemented.");
     }
 }