private void CloseSplash() { if (FormSplash == null) return; // Shut down the splash screen FormSplash.Invoke(new EventHandler(FormSplash.KillMe)); FormSplash.Dispose(); FormSplash = null; }
/// <summary> /// Starts the splash screen on a separate thread /// </summary> static public void StartSplash() { // Instance a splash form given the image names FormSplash = new frmSplash(); // Run the form Application.Run(FormSplash); }