private void setupButton_Click(object sender, System.EventArgs e) { if (interfaceComboBox.SelectedIndex == 0) { OBDPrefsElm prefsElm = new OBDPrefsElm(mPrefs); prefsElm.ShowDialog(); } else { OBDPrefsMultiplex prefsMultiplex = new OBDPrefsMultiplex(mPrefs); prefsMultiplex.ShowDialog(); } }