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(); } }
private void FormMenu_Load(object sender, EventArgs e) { var formLogin = new FormLogin(); formLogin.ShowDialog(); }
private void loginToolStripMenuItem_Click(object sender, EventArgs e) { var formLogin = new FormLogin(); formLogin.ShowDialog(); }