private void MComponente_Load(object sender, EventArgs e) { ConsumeWebApi consume = new ConsumeWebApi(); cmbMecanico.DataSource = consume.getEspecialistas(); cmbMecanico.DisplayMember = "NOMBRE"; cmbMecanico.ValueMember = "ID_MECANICO"; }
private void MComponente_Load(object sender, EventArgs e) { ConsumeWebApi consume = new ConsumeWebApi(); cmbMecanico.DataSource = consume.getEspecialistas(); cmbMecanico.DisplayMember = "NOMBRE"; cmbMecanico.ValueMember = "ID_MECANICO"; }