private void LlenarComboMedico() { LMedico obj = new LMedico(); cbMedico.DataSource = obj.Mostrar(); cbMedico.DisplayMember = "apellido"; cbMedico.ValueMember = "idMedico"; }
private void Mostrar() { medicoViewBindingSource.DataSource = null; medicoViewBindingSource.DataSource = obj.Mostrar(); }