private void btnAceptar_Click(object sender, EventArgs e) { Login.IfrmLogin login = new Login.IfrmLogin(); InterfazGraficaPrincipal igp = Application.OpenForms.OfType <InterfazGraficaPrincipal>().SingleOrDefault(); login.Show(); igp.Close(); this.Hide(); }
private void btnAtras_Click(object sender, EventArgs e) { InterfazGraficaPrincipal igp = Application.OpenForms.OfType <InterfazGraficaPrincipal>().SingleOrDefault(); igp.panelMostrador.Controls.Clear(); igp.panelMostrador.Dock = DockStyle.None; igp.panelMostrador.Visible = false; igp.panSubMenuEstudiante.Visible = true; igp.panSubMenuEstudiante.Dock = DockStyle.Fill; this.Close(); }