public static void CloseProgress() { if (_form != null && !_form.IsDisposed && !_form.Disposing) { _form.Close(); _form = null; } }
public static void ShowLoadProgress() { if (!_showed) { _showed = true; _form = new FormLoadProgress(); _form.Location = new Point((Screen.PrimaryScreen.WorkingArea.Width - _form.Width) / 2, (Screen.PrimaryScreen.WorkingArea.Height - _form.Height - 30)); _form.Show(); } }