N64 controller config - fix enabling/disabling of Pak dropdown when the connected checkbox is checked

This commit is contained in:
adelikat 2014-06-25 13:39:33 +00:00
parent 5f71bf11c8
commit 555a30c492
2 changed files with 52 additions and 46 deletions

View File

@ -42,6 +42,7 @@
this.EnabledCheckbox.TabIndex = 0;
this.EnabledCheckbox.Text = "Connected";
this.EnabledCheckbox.UseVisualStyleBackColor = true;
this.EnabledCheckbox.CheckedChanged += new System.EventHandler(this.EnabledCheckbox_CheckedChanged);
//
// PakTypeDropdown
//

View File

@ -91,5 +91,10 @@ namespace BizHawk.Client.EmuHawk
ControllerNameLabel.Text = "Controller " + ControllerNumber;
base.Refresh();
}
private void EnabledCheckbox_CheckedChanged(object sender, EventArgs e)
{
PakTypeDropdown.Enabled = EnabledCheckbox.Checked;
}
}
}