Exemplo n.º 1
0
 /// <summary>
 /// 关闭窗体
 /// </summary>
 private void _CloseForm()
 {
     //waitForm.Close();
     //waitForm = null;
     if (waitForm != null)
     {
         waitForm.Close();
         //waitThread.Abort();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 关闭窗体
 /// </summary>
 private void _CloseForm()
 {
     //waitForm.Close();
     //waitForm = null;
     if (waitForm != null)
     {
         Application.DoEvents();
         waitForm.Close();
         //waitThread.Abort();
     }
 }
Exemplo n.º 3
0
 //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();
     }
 }