Esempio n. 1
0
 //系统初始化过程
 public void SystemInitialize()
 {
     mre.WaitOne();
     for (int i = 0; i < 100; i++)
     {
         splash.Invoke(splash.ShowProgress, new object[] { Convert.ToString(i) });
         Thread.Sleep(200);
     }
     //初始化完成,关闭启动屏幕
     splash.BeginInvoke(splash.CloseSplash);
 }
Esempio n. 2
0
        static void frmLaunch_Load(object sender, EventArgs e)
        {
            //close splasheriinooos
            if (frmSplashScreen == null)
            {
                return;
            }

            frmSplashScreen.Invoke(new Action(frmSplashScreen.Close));
            frmSplashScreen.Dispose();
            frmSplashScreen = null;
        }