public void pasarDocente(Persona p) { if (p.TipoPersona == 2) { bool seleccionarUnCurso = true; FormCurso form = new FormCurso(seleccionarUnCurso, p); form.formInicial = this; this.abrirFormHija(form); } }
private void tslVerAlumnos_Click(object sender, EventArgs e) { PersonaLogic pl = new PersonaLogic(); if (pl.GetOne(logeado.IdPersona).TipoPersona == 1) { FormPersonas form = new FormPersonas("docente"); form.formInicial = this; this.abrirFormHija(form); } else if (pl.GetOne(logeado.IdPersona).TipoPersona == 2) { bool seleccionarUnCurso = true; FormCurso form = new FormCurso(seleccionarUnCurso, logeado); form.formInicial = this; this.abrirFormHija(form); } }