void startup() { Program.logIt("startup: ++"); SplashScreen ss = new SplashScreen(); ss.Show(); ss.FormClosed += (s, o) => { FormLogIn f1 = new FormLogIn(); f1.StartPosition = ss.StartPosition; f1.Show(); f1.FormClosed += (s1, o1) => { if (f1.terminate) { ExitThread(); } else { startup_wizard(); } }; }; Program.logIt("startup: --"); }
void test() { Program.logIt("test: ++"); // FormLogIn f1 = new FormLogIn(); f1.Show(); //f1.FormClosed += (s, e) => //{ // Form3 f2 = new Form3(); // f2.Show(); // f2.FormClosed += (s1, e1) => { ExitThread(); }; //}; //System.Threading.Thread.Sleep(1000); //f1.Close(); Program.logIt("test: --"); //ExitThread(); }