void ShowBlockingDialog(string path, BackgroundWorker worker) { using (FormPPSave blockingForm = new FormPPSave(worker)) { blockingForm.Text = "Saving " + Path.GetFileName(path) + "..."; if (blockingForm.ShowDialog() == DialogResult.OK) { Report.ReportLog("Finished saving to " + saveFileDialog1.FileName); } } }