Пример #1
0
        private bool SelectSource()
        {
            bool success = false;
            var  ms      = new MicrophoneSourceForm {
                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 MicrophoneSourceForm {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;
        }