Example #1
0
        private void radio_oneSource_Checked(object sender, RoutedEventArgs e)
        {
            var radioButton = (RadioButton)sender;

            if ((bool)radioButton.IsChecked)
            {
                if (radio_twoSource != null)
                {
                    this.Dispatcher.BeginInvoke((Action)(() =>
                    {
                        radio_twoSource.IsChecked = false;
                        selectedMethod.stopRecord();
                        selectedMethod.stopListening();
                        selectedMethod.resetVolumeBar();
                        selectedMethod = micObject;
                        selectedMethod.startListening();
                    }));
                }
            }
        }
Example #2
0
        public void Startup()
        {
            loadAppInfo();

            fileConverter         = new FileConverter();
            fileConverter.windows = this;

            micObject        = new MicObject();
            micSpeakerObject = new MicSpeakerObject();

            micObject.windows        = this;
            micSpeakerObject.windows = this;

            micObject.fileConverter        = fileConverter;
            micSpeakerObject.fileConverter = fileConverter;

            selectedMethod = micSpeakerObject;

            startWASAPI();
            setBaseInfo();
        }