ARCed.Database.Enemies.EditActionDialog.CheckBoxSwitchCheckedChanged C# (CSharp) Method

CheckBoxSwitchCheckedChanged() private method

private CheckBoxSwitchCheckedChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void CheckBoxSwitchCheckedChanged(object sender, EventArgs e)
        {
            this.comboBoxSwitch.Enabled = this.checkBoxSwitch.Checked;
            this.comboBoxSwitch.SelectedIndex = Math.Max(0, this.comboBoxSwitch.SelectedIndex);
        }