示例#1
0
        private static void OnAppIdle(object sender, EventArgs e)
        {
            if (context.MainForm == null)
            {
                //	first we remove the eventhandler
                Application.Idle -= new EventHandler(OnAppIdle);

                mForm.Loading += new Netron.Cobalt.MainForm.LoadingInfo(mainForm_Loading);
                //	here we preload our form
                mForm.PreLoad();

                //	now we set the main form for the context...
                context.MainForm = mForm;

                //	...show it...
                context.MainForm.Show();

                System.Threading.Thread.Sleep(1300);
                //	...and hide the splashscreen. done!
                SplashScreen.CloseForm();
            }
        }