private void openTTSRecordingInstructions() { if (_audioRecordingInstructionsWindow == null || _audioRecordingInstructionsWindow.IsActive == false) { //wrapping the control panel call in a try/catch just in case for some reason the installation of Windows doesn't have/allow access to this function. try { System.Diagnostics.Process.Start(@"C:\Windows\System32\rundll32.exe", "Shell32.dll,Control_RunDLL Mmsys.cpl,,1 Sound and Audio Device Properties"); } catch { } _audioRecordingInstructionsWindow = new AudioRecordingInstructionsWindow(); _audioRecordingInstructionsWindow.Show(); } }
public void Dispose() { if (this._audioRecordingInstructionsWindow != null) { this._audioRecordingInstructionsWindow.Close(); this._audioRecordingInstructionsWindow = null; } if (this.Settings != null) { if (this.Settings.CurAforgeCaptureDevice != null) { this.Settings.CurAforgeCaptureDevice.NewFrame -= this.newAforgeFrameHandler; } this.Settings.Dispose(); } }