private void LlenarComboPaciente() { LPaciente obj = new LPaciente(); cbPaciente.DataSource = obj.Mostrar(); cbPaciente.DisplayMember = "apellido"; cbPaciente.ValueMember = "idPaciente"; }
private void Mostrar() { pacienteViewBindingSource.DataSource = null; pacienteViewBindingSource.DataSource = obj.Mostrar(); }