private static void ShowForm(object threadStartData) { JcwSplashScreenParameters jcwThreadStartData = threadStartData as JcwSplashScreenParameters; if (jcwThreadStartData != null) { ApplicationSplashScreen = new JcwSplashScreenFrm(jcwThreadStartData); Application.Run(ApplicationSplashScreen); } }
public static void CloseForm() { if (ApplicationSplashScreen != null && ApplicationSplashScreen.IsDisposed == false) { // start splash screen fade away process ApplicationSplashScreen.m_opacityIncrement = -ApplicationSplashScreen.m_opacityDecrement; } SplashScreenThread = null; ApplicationSplashScreen = null; }