static private void CloseFormInternal() { if (splashForm != null) { splashForm.Close(); splashForm = null; } ; }
static public void ShowSplashScreen() { // Make sure it is only launched once. if (splashForm != null) { return; } splashForm = new frmSonLoading(); Thread thread = new Thread(new ThreadStart(frmSonLoading.ShowForm)); thread.IsBackground = true; thread.SetApartmentState(ApartmentState.STA); thread.Start(); }