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