void Close() { if (sf != null) { sf.CloseSplashScreen(); sf = null; } }
/// <summary> /// Closes the SplashScreen /// </summary> public static void CloseSplashScreen() { if (callingForm == null) return; callingForm.Show(); if (sf != null) { sf.CloseSplashScreen(); sf = null; } callingForm.Activate(); }
/// <summary> /// Closes the SplashScreen /// </summary> public static void CloseSplashScreen() { if (callingForm == null) { return; } callingForm.Show(); if (sf != null) { sf.CloseSplashScreen(); sf = null; } callingForm.Activate(); }
/// <summary> /// Displays the splashscreen /// </summary> static void ShowSplashScreen(object param) { if (sf == null) { SplashScreenOptions options; if (param is SplashScreenOptions) { options = param as SplashScreenOptions; } else { options = new SplashScreenOptions(); } sf = new SplashScreenForm(options); sf.ShowSplashScreen(); } }
/// <summary> /// Displays the splashscreen /// </summary> static void ShowSplashScreen(object param) { if (sf == null) { SplashScreenOptions options; if (param is SplashScreenOptions) options = param as SplashScreenOptions; else options = new SplashScreenOptions(); sf = new SplashScreenForm(options); sf.ShowSplashScreen(); } }