/// <summary> /// 创建等待窗体 /// </summary> public void _CreateForm() { waitForm = null; waitThread = new Thread(new ThreadStart(this._ShowWaitForm)); waitThread.Start(); Thread.Sleep(100); }
private void _ShowWaitForm() { try { waitForm = new WaitForm(); waitForm.ShowDialog(); //Application.Run(waitForm); } catch (ThreadAbortException e) { waitForm.Close(); Thread.ResetAbort(); } }