private static void CloseSplashDown() { Application.ExitThread(); _splashScreen = null; }
private static void LaunchSplash() { _splashScreen = new SplashScreen(); // Create new message pump Application.Run(_splashScreen); }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (_splashScreen != null) { Application.ExitThread(); _splashScreen = null; } if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }