Exemple #1
0
        public UCTrombi()
        {
            InitializeComponent();

            // Récupère le photos des employés
            List <Employe> employes = DAL.GeEmployes();

            // Les affiche dans la ListBox

            /*foreach (var p in photos)
             * {
             *      var img = new Image();
             *      img.Source = p;
             *      img.Width = 200;
             *      lbPhotos.Items.Add(img);
             * }*/
            DataContext = employes;
        }
Exemple #2
0
 public VMTrombi()
 {
     Employes = new List <Employe>(DAL.GeEmployes());
 }