private bool SelectSource() { bool success = false; var ms = new MicrophoneSource {Mic = VolumeLevel.Micobject}; ms.ShowDialog(this); if (ms.DialogResult == DialogResult.OK) { chkActive.Enabled = true; chkActive.Checked = false; Application.DoEvents(); VolumeLevel.Micobject.settings.needsupdate = true; lblAudioSource.Text = VolumeLevel.Micobject.settings.sourcename; chkActive.Checked = true; success = true; } ms.Dispose(); return success; }
private bool SelectSource() { bool success = false; var ms = new MicrophoneSource { Mic = VolumeLevel.Micobject }; ms.ShowDialog(this); if (ms.DialogResult == DialogResult.OK) { chkActive.Enabled = true; chkActive.Checked = false; Application.DoEvents(); VolumeLevel.Micobject.settings.needsupdate = true; lblAudioSource.Text = VolumeLevel.Micobject.settings.sourcename; chkActive.Checked = true; success = true; } ms.Dispose(); return(success); }