public void ListVehicule() { var l = Vehicule.getAll(); foreach (var item in l) { LoadCombo lCombo = new LoadCombo(); lCombo.Id = item.Id; lCombo.Libelle = item.Libelle; ListVehicules.Add(lCombo); } cmbVehicule.ItemsSource = ListVehicules; }
private void LoadVehicules() { var l = Vehicule.getAll(); foreach (var item in l) { LoadCombo lCombo = new LoadCombo(); lCombo.Id = item.Id; lCombo.Libelle = item.TeteEngin.Matricule + " " + item.BenneEngin.Matricule; ListVehicules.Add(lCombo); } cmbVehicule.ItemsSource = ListVehicules; }