/// <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) { } }
/// <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) { } }