public bool SelectVideoCompression() { try { DialogMakeSelection dlg = new DialogMakeSelection(); dlg.LoadFilters(this.VideoCompressorList, _videoCompressor); Form f = null; if (_previewWindow != null) { f = _previewWindow.FindForm(); } if (dlg.ShowDialog(f) == DialogResult.OK) { if (dlg.SelectedFilter == null) { _videoCompressor = string.Empty; } else { _videoCompressor = dlg.SelectedFilter.Name; } if (_capture != null) { _capture.VideoCompressor = dlg.SelectedFilter; } return(true); } } catch (Exception err) { processError("SelectVideoCompression", err); } return(false); }
public bool SelectAudioSource() { if (_capture != null) { Form f = null; if (_previewWindow != null) { f = _previewWindow.FindForm(); } try { DialogMakeSelection dlg = new DialogMakeSelection(); dlg.LoadSources(_capture.AudioSources, _capture.AudioSource); if (dlg.ShowDialog(f) == DialogResult.OK) { _capture.AudioSource = dlg.SelectedSource; return(true); } } catch (Exception err) { processError("SelectAudioSource", err); } } return(false); }