/// <summary> /// 关闭窗体 /// </summary> private void _CloseForm() { //waitForm.Close(); //waitForm = null; if (waitForm != null) { waitForm.Close(); //waitThread.Abort(); } }
/// <summary> /// 关闭窗体 /// </summary> private void _CloseForm() { //waitForm.Close(); //waitForm = null; if (waitForm != null) { Application.DoEvents(); waitForm.Close(); //waitThread.Abort(); } }
//private void _ShowWaitForm() private void _ShowWaitForm(object ParentForm) { try { //waitForm = new BusyForm(); waitForm = new BusyForm((Form)ParentForm); waitForm.ShowDialog(); } catch (ThreadAbortException) { waitForm.Close(); Thread.ResetAbort(); } }