private void RadioButtonCheckChanged(object sender, EventArgs e)
{
bool disableAll = this.radioButtonNone.Checked;
this.comboBoxItem.Enabled = this.radioButtonItem.Checked && !disableAll;
this.comboBoxWeapon.Enabled = this.radioButtonWeapon.Checked && !disableAll;
this.comboBoxArmor.Enabled = this.radioButtonArmor.Checked && !disableAll;
this.numericUpDownPropability.Enabled = !disableAll;
foreach (ComboBox box in new[] { this.comboBoxItem, this.comboBoxWeapon, this.comboBoxArmor })
{
if (box.Enabled && box.SelectedIndex < 0)
box.SelectedIndex = 0;
else if (!box.Enabled)
box.SelectedIndex = -1;
}
}