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