private void btnReset_Click(object sender, EventArgs e) { VsGameConfig defaultConfig = VsGameConfig.GetGameConfig(((DropdownElement)cboGame.SelectedItem).ID); ((VsConfigInfo)Entity).DipSwitches = defaultConfig.DefaultDipSwitches; ((VsConfigInfo)Entity).PpuModel = defaultConfig.PpuModel; ((VsConfigInfo)Entity).InputType = defaultConfig.InputType; UpdateUI(); UpdateDipSwitches(defaultConfig, false); }
private void cboGame_SelectedIndexChanged(object sender, EventArgs e) { VsGameConfig config = VsGameConfig.GetGameConfig(((DropdownElement)cboGame.SelectedItem).ID); UpdateDipSwitches(config, false); }