Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FrmLogin frmLogin = new FrmLogin();

            Program.contexto = new ApplicationContext();
            Program.contexto.MainForm = frmLogin;

            Application.Run(Program.contexto);
        }
Beispiel #2
0
 private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmLogin frmLogin = new FrmLogin();
     frmLogin.Show();
     Program.contexto.MainForm = frmLogin;
     this.Close();
 }