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