private void openPatchToolStripMenuItem_Click(object sender, EventArgs e) { if (sthread.State == SynthWaveProvider.PlayerState.Stopped) { PatchSelect ps = new PatchSelect(sthread.Bank); ps.ShowDialog(); } }