예제 #1
0
 public void HideSplash()
 {
     if (this.InvokeRequired)
     {
         var d = new HideSplashCallback(Hide);
         this.Invoke(d);
     }
     else
     {
         this.Hide();
     }
 }
예제 #2
0
 /// <summary>
 /// Masque la fenêtre d'application.
 /// </summary>
 private void HideSplash()
 {
     if (this.InvokeRequired)
     {
         // On appel la méthode depuis le thread courant.
         HideSplashCallback callBack = new HideSplashCallback(HideSplash);
         try
         {
             this.Invoke(callBack, new object[] { });
         }
         catch (ObjectDisposedException)
         {
         }
     }
     else
     {
         Hide();
     }
 }