public UCEmployes() { InitializeComponent(); ListPersonne = DAL.GetPersonnes(); lb_Empl.ItemsSource = ListPersonne; lb_Empl.DisplayMemberPath = "NomPrenom"; lb_Empl.SelectionChanged += Lb_Empl_SelectionChanged; lb_Empl.SelectedValuePath = "EmployeeId"; }
public UCTrombi() { InitializeComponent(); ListPersonne = DAL.GetPersonnes(); foreach (var pers in ListPersonne) { lb_Photos.Items.Add(pers.Photo); } }