Exemple #1
0
 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);
 }