public static void CloseForm()
 {
     if (splash != null && !splash.IsDisposed)
       {
     splash.Close();
     splash.Dispose();
       }
       splash = null;
 }
 public static void ShowForm()
 {
     splash = new SplashPane();
       Application.Run(splash);
 }