Ejemplo n.º 1
0
 static private void CloseFormInternal()
 {
     if (splashForm != null)
     {
         splashForm.Close();
         splashForm = null;
     }
     ;
 }
Ejemplo n.º 2
0
        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();
        }