private void ExtractImagesCommand_Execute() { try { SetBusy(true); var dialog = new FolderBrowserDialog(); var result = dialog.ShowDialog(); if (result == DialogResult.OK) { var pdfFilePaths = PdfFiles.ToArray(); var imageExtractor = new ImageExtractor(pdfFilePaths, dialog.SelectedPath); imageExtractor.Extract(); System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo { FileName = dialog.SelectedPath, UseShellExecute = true, Verb = "open" }); } } catch (Exception exception) { MessageBox.Show(exception.Message); Console.WriteLine(exception); } finally { SetBusy(false); } }