private void CreateProgressWindow() { if (progressForm == null) { progressForm = new ImportTextProgressForm(); progressForm.FormClosing += ProgressForm_FormClosing; } }
private void CloseProgressWindow() { if (progressForm != null) { progressForm.Close(); progressForm.FormClosing -= ProgressForm_FormClosing; progressForm.Dispose(); progressForm = null; } }