public void MapearPlanes() { MateriaLogic ml = new MateriaLogic(); txtIDPlan.DataSource = ml.GetPlanes(); txtIDPlan.ValueMember = "ID"; txtIDPlan.DisplayMember = "Descripcion"; if (Modo != ModoForm.Alta) { txtIDPlan.SelectedValue = MateriaActual.IDPlan; } ; }