public bool UpdateResultsFiles(IEnumerable <string> dirPaths, bool overwrite) { using (var longWaitDlg = new LongWaitDlg { Text = Resources.ImportResultsControl_FindResultsFiles_Searching_for_Results_Files }) { try { longWaitDlg.PerformWork(WizardForm, 1000, longWaitBroker => ImportPeptideSearch.UpdateSpectrumSourceFilesFromDirs(dirPaths, overwrite, longWaitBroker)); } catch (Exception x) { MessageDlg.ShowWithException(WizardForm, TextUtil.LineSeparate( Resources.ImportResultsControl_FindResultsFiles_An_error_occurred_attempting_to_find_results_files_, x.Message), x); } } UpdateResultsFilesUI(); return(!MissingResultsFiles.Any()); }