private void BLogin_Click(object sender, EventArgs e) { Logueo childForm = new Logueo(); usuarioActual = childForm.UsuarioActivo; childForm.Visible = true; this.Visible = false; }
private void logueoToolStripMenuItem_Click(object sender, EventArgs e) { Logueo childForm = new Logueo(); this.Close(); this.Visible = false; childForm.Visible = false; if (childForm.ShowDialog() == DialogResult.OK) { usuarioActual = childForm.UsuarioActivo; } }