Esempio n. 1
0
        public static void Close()
        {
            if (MySplashThread == null)
            {
                return;
            }
            if (MySplashForm == null)
            {
                return;
            }

            try
            {
                MySplashForm.Invoke(new MethodInvoker(MySplashForm.Close));
            }
            catch (Exception e)
            {
                string hash = e.GetHashCode().ToString();
                MessageBox.Show("Exception occurred: " + hash);
            }

            MySplashForm   = null;
            MySplashThread = null;
        }
Esempio n. 2
0
 static void ShowThread()
 {
     MySplashForm = new SplashForm();
     Application.Run(MySplashForm);
 }