private void microphoneToolStripMenuItem_Click(object sender, EventArgs e) { if (microphoneToolStripMenuItem.Checked) { SetMicrophone dlg = new SetMicrophone(); dlg.ShowDialog(); if (dlg.DialogResult == DialogResult.OK) { mic.Start(dlg.getDeviceNumber(), dlg.getSensitivity()); } } else { mic.Stop(); } }
private void microphoneToolStripMenuItem_Click(object sender, EventArgs e) { if (microphoneToolStripMenuItem.Checked) { SetMicrophone dlg = new SetMicrophone(); dlg.ShowDialog(); if (dlg.DialogResult == DialogResult.OK) { mic.Start(dlg.getDeviceNumber(), dlg.getSensitivity()); } } else mic.Stop(); }