Beispiel #1
0
 /// <summary>
 /// 创建等待窗体
 /// </summary>
 public void _CreateForm()
 {
     waitForm   = null;
     waitThread = new Thread(new ThreadStart(this._ShowWaitForm));
     waitThread.SetApartmentState(ApartmentState.STA);
     waitThread.Start();
 }
Beispiel #2
0
 private void _ShowWaitForm()
 {
     try
     {
         //waitForm = new WaitBox2();
         waitForm = new WaitBox();// new WaitBlackspot();
         waitForm.ShowDialog();
     }
     catch
     {
         waitForm = null;
         Thread.ResetAbort();
     }
 }