Beispiel #1
0
 protected void ShowWaiting()
 {
     if (_dlgWaiting == null)
     {
         _dlgWaiting = new dlgWaiting();
     }
     _dlgWaiting.ShowDialog(this);
 }
Beispiel #2
0
 protected void HideWaiting()
 {
     try
     {
         this.Invoke(new MethodInvoker(delegate()
         {
             if (_dlgWaiting != null)
             {
                 _dlgWaiting.Close();
                 _dlgWaiting = null;
             }
         }));
     }
     catch
     {
         if (_dlgWaiting != null)
         {
             _dlgWaiting.Close();
             _dlgWaiting = null;
         }
     }
 }