private void DeviceProperties_Click(object sender, EventArgs e) { if (DeviceList.SelectedIndex > -1) { MidiMap midiMap = (MidiMap)DeviceList.SelectedItem; ControllerProperties props = new ControllerProperties(); props.DeviceMap = midiMap; if (props.ShowDialog() == System.Windows.Forms.DialogResult.OK) { DeviceSelected(); } } }
private void DeviceProperties_Click(object sender, EventArgs e) { if (DeviceList.SelectedIndex > -1 ) { MidiMap midiMap = (MidiMap)DeviceList.SelectedItem; ControllerProperties props = new ControllerProperties(); props.DeviceMap = midiMap; if (props.ShowDialog() == System.Windows.Forms.DialogResult.OK) { DeviceSelected(); } } }