private void cerrarSesiĆ³nToolStripMenuItem_Click(object sender, EventArgs e) { Session.Usuario = null; var form = new Login.Login(); form.Location = this.Location; form.StartPosition = FormStartPosition.CenterScreen; form.Show(); this.Hide(); }
private void btnSalir_Click(object sender, EventArgs e) { Login.Login login = new Login.Login(); login.Show(); this.Dispose(); }
private void btnSalir_Click(object sender, EventArgs e) { padre.Show(); this.Close(); }
// Abre el formulario de Login private void lklCerrarSesion_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Login.Login formLogin = new Login.Login(); // Crea un formulario de Login formLogin.Show(); // Muestra el formulario de login this.Close(); // Oculta el formulario principal }