Ejemplo n.º 1
0
 public UCEmployes()
 {
     InitializeComponent();
     DataContext = new ContexteEmploye();
     //DataContext = DAL.GetPersonnes();      mis en commentaire suite exercice Etape 1 Saisie d'employés
     //ListPersonne = DAL.GetPersonnes();
     //lb_Empl.ItemsSource = ListPersonne;
     //lb_Empl.DisplayMemberPath = "NomPrenom";
     //lb_Empl.SelectionChanged += Lb_Empl_SelectionChanged;
     //lb_Empl.SelectedValuePath = "EmployeeId";
     //lb_Empl.DataContext = ListPersonne;
     //sp_Employe.DataContext = ListPersonne;
 }
Ejemplo n.º 2
0
        public UCEmployes()
        {
            InitializeComponent();

            DataContext = new ContexteEmploye();
        }