public static void Close() { if (Splash.MySplashThread != null) { if (Splash.MySplashForm != null) { try { Splash.MySplashForm.Invoke(new MethodInvoker(Splash.MySplashForm.Close)); } catch (Exception) { } Splash.MySplashThread = null; Splash.MySplashForm = null; } } }
private static void ShowThread() { Splash.MySplashForm = new frmPromptQuerying(1); Application.Run(Splash.MySplashForm); }