Exemple #1
0
        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var formLogin = new FormLogin();

            formLogin.ShowDialog();

            if (Program.UsuarioLogueado != null)
            {
                toolStripStatusLabel1.Text = "Usuario: " + Program.UsuarioLogueado.Nombre;
            }
            else
            {
                Application.Exit();
            }
        }
Exemple #2
0
        private void FormMenu_Load(object sender, EventArgs e)
        {
            var formLogin = new FormLogin();

            formLogin.ShowDialog();
        }
Exemple #3
0
        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var formLogin = new FormLogin();

            formLogin.ShowDialog();
        }