コード例 #1
0
 /// <summary>
 /// Invokes the thread with the window and closes it
 /// </summary>
 public static void CloseSplash()
 {
     if (splash == null)
     {
         return;
     }
     try
     {
         // Shut down the splash screen
         splash.Invoke(new EventHandler(splash.KillMe));
         splash.Dispose();
         splash = null;
     }
     catch (Exception)
     { }
 }
コード例 #2
0
 /// <summary>
 /// Invokes the thread with the window and closes it
 /// </summary>
 public static void CloseSplash()
 {
     if (splash == null)
     {
         return;
     }
     try
     {
         if (splash.InvokeRequired)
         {
             splash.Invoke(new EventHandler(splash.KillMe));
         }
         else
         {
             splash.KillMe(null, null);
         }
     }
     catch (Exception)
     { }
 }