Example #1
0
        private bool SelectSource()
        {
            bool             _success = false;
            MicrophoneSource _ms      = new MicrophoneSource();

            _ms.Mic = VolumeLevel.Micobject;


            _ms.ShowDialog(this);
            if (_ms.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                chkActive.Enabled = true;
                chkActive.Checked = false;
                Application.DoEvents();
                lblAudioSource.Text = VolumeLevel.Micobject.settings.sourcename;
                if (txtMicrophoneName.Text == "")
                {
                    txtMicrophoneName.Text = lblAudioSource.Text;
                }
                chkActive.Checked = true;
                _success          = true;
            }
            _ms.Dispose();
            return(_success);
        }
Example #2
0
        private bool SelectSource()
        {
            bool _success = false;
            MicrophoneSource _ms = new MicrophoneSource();
            _ms.Mic = VolumeLevel.Micobject;

            _ms.ShowDialog(this);
            if (_ms.DialogResult == System.Windows.Forms.DialogResult.OK)
            {

                chkActive.Enabled = true;
                chkActive.Checked = false;
                Application.DoEvents();
                lblAudioSource.Text = VolumeLevel.Micobject.settings.sourcename;
                if (txtMicrophoneName.Text == "")
                    txtMicrophoneName.Text = lblAudioSource.Text;
                chkActive.Checked = true;
                _success = true;
            }
            _ms.Dispose();
            return _success;
        }