예제 #1
0
        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;
        }
예제 #2
0
        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);
        }