Example #1
0
 public void HideEvent(bool bHide)
 {
     if (this.InvokeRequired)
     {
         try
         {
             InvokeHide cb = new InvokeHide(HideEvent);
             this.Invoke(cb, new object[] { bHide });
         }
         finally
         {
         }
         return;
     }
     if (bHide)
     {
         // this.Hide();
     }
     else
     {
         _querytimes = 0;
         this.Show();
         this.BringToFront();
     }
 }
 public void HideEvent(bool bHide)
 {
     if (this.InvokeRequired)
     {
         InvokeHide cb = new InvokeHide(HideEvent);
         this.Invoke(cb, new object[] { bHide });
         return;
     }
     if (bHide)
     {
         // this.Hide();
     }
     else
     {
         this.Show();
         this.BringToFront();
     }
 }