public DeleteCustomUnitsBox(MainScreen pMainScreen) { InitializeComponent(); // To enable this form to call public functions // from the main screen mainScreen = pMainScreen; // Set initially active control of the form this.ActiveControl = unitSelectorCustomUnitTable; unitSelectorCustomUnitTable.Focus(); unitSelectorCustomUnitTable.SelectedIndex = 0; }
public AddCustomUnitsBox(MainScreen pMainScreen) { InitializeComponent(); // To enable this form to call public functions // from the main screen mainScreen = pMainScreen; // Set initially active control of the form ResetFocus(); // Reset the input boxes during initialisation SetInputBoxToDefault(customUnitNameInput, true); SetInputBoxToDefault(gradientUnitInput, true); SetInputBoxToDefault(interceptUnitInput, true); }