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