Exemplo n.º 1
0
 protected void ShowWaiting()
 {
     if (_dlgWaiting == null)
     {
         _dlgWaiting = new dlgWaiting();
     }
     _dlgWaiting.ShowDialog(this);
 }
Exemplo n.º 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;
         }
     }
 }