private void cmdConnectAll_Click(object sender, EventArgs e) { using (new clsWaitCursor()) { clsBASSOutDev.Disconnected = false; CloseAllStreams(); Interface.Apply(); OpenAllStreams(); try { MidiPlay.OpenMidiDevs(bassonly: true); } catch (AudioIOException exc) { MessageBox.Show("Audio IO Exception: " + exc.Message); return; } catch (MidiIOException exc) { MessageBox.Show("Midi IO Exception: " + exc.Message); return; } SetStates(); ShowCurrentConnection(); PlayableForms.CmdState_Set(); } }