static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FrmLogin frmLogin = new FrmLogin(); Program.contexto = new ApplicationContext(); Program.contexto.MainForm = frmLogin; Application.Run(Program.contexto); }
private void logoutToolStripMenuItem_Click(object sender, EventArgs e) { FrmLogin frmLogin = new FrmLogin(); frmLogin.Show(); Program.contexto.MainForm = frmLogin; this.Close(); }