public void DoChecksOfAllBooks()
{
using (var dlg = new ProgressDialogBackground())
{
dlg.ShowAndDoWork((progress, args) => DoChecksOfAllBooksBackgroundWork(dlg,null));
if (dlg.Progress.ErrorEncountered || dlg.Progress.WarningsEncountered)
{
MessageBox.Show("Bloom will now open a list of problems it found.");
var path = Path.GetTempFileName() + ".txt";
RobustFile.WriteAllText(path, dlg.ProgressString.Text);
PathUtilities.OpenFileInApplication(path);
}
else
{
MessageBox.Show("Bloom didn't find any problems.");
}
}
}