internal static void ShowSpashScreen( ) { if (_splash == null || _splash.IsDisposed) { _splash = new CCNetConfig.UI.SplashForm( ); } Thread t = new Thread(new ThreadStart(delegate() { _splash.ShowDialog( ); })); t.Start( ); }
internal static void HideSplashScreen( ) { if (_splash == null || _splash.IsDisposed) { return; } if (_splash.InvokeRequired) { _splash.Invoke(new GenericDelegate(delegate() { _splash.Close( ); })); } else { _splash.Close( ); } _splash = null; }