Ejemplo n.º 1
0
        private void LlenarComboPaciente()
        {
            LPaciente obj = new LPaciente();

            cbPaciente.DataSource    = obj.Mostrar();
            cbPaciente.DisplayMember = "apellido";
            cbPaciente.ValueMember   = "idPaciente";
        }
Ejemplo n.º 2
0
 private void Mostrar()
 {
     pacienteViewBindingSource.DataSource = null;
     pacienteViewBindingSource.DataSource = obj.Mostrar();
 }