static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(true); UpdateCheck check = new UpdateCheck(); Application.Run(check); if (check.checkSwitch == false) { //Login login = new Login(); MainInterface main = new MainInterface(); Application.Run(main); //Application.Run(login); //if (login.switches == true) //{ //} } else Application.Exit(); }