private void VehiculoCrear_Load(object sender, EventArgs e) { cbVehiculoTipo.DataSource = _tipoVehiculoService.GetAll(); cbVehiculoTipo.DisplayMember = "Descripcion"; cbVehiculoTipo.ValueMember = "Id"; cbVehiculoTipo.SelectedIndex = 0; cbVehiculoMarca.DataSource = _marcaService.GetAll(); cbVehiculoMarca.DisplayMember = "Descripcion"; cbVehiculoMarca.ValueMember = "Id"; cbVehiculoMarca.SelectedIndex = 0; cbVehiculoModelo.DataSource = _modeloService.Join(); cbVehiculoModelo.DisplayMember = "Value"; cbVehiculoModelo.ValueMember = "Key"; cbVehiculoModelo.SelectedIndex = 0; cbVehiculoCombustible.DataSource = _tipoCombustibleService.GetAll(); cbVehiculoCombustible.DisplayMember = "Descripcion"; cbVehiculoCombustible.ValueMember = "Id"; cbVehiculoCombustible.SelectedIndex = 0; }
private void TipoVehicloCrear_Load(object sender, EventArgs e) { dgvTipoVehiculo.DataSource = _tipoVehiculoService.GetAll(); }