public ProfesorDesktop(int ID, ModoForm modo) : this() { Modo = modo; ProfesorLogic ul = new ProfesorLogic(); this.ProfesorActual = ul.GetOne(ID); this.MapearDeDatos(); }
public override void GuardarCambios() { if (this.Validar()) { this.MapearADatos(); ProfesorLogic pl = new ProfesorLogic(); pl.Save(this.ProfesorActual); this.Close(); } }
public void Listar() { ProfesorLogic pl = new ProfesorLogic(); dgvProfesores.DataSource = pl.GetAll(); }
public void Listar() { ProfesorLogic pr = new ProfesorLogic(); this.dgvProfesores.DataSource = pr.GetAll(); }