public DetailPosteViewModel() { PosteConcerne = DAOPoste.ConstructeurPoste(LaNavigation.Poste); ListeFormation = DAOFormation.ListerFormationObligatoirePoste(PosteConcerne); this.AjouterFormationCommand = new RelayCommand(AjouterFormation); this.DetailFormationCommand = new RelayCommand(DetailFormation); this.DetailEmployeeCommand = new RelayCommand(DetailEmployee); }
public AjouterEmployeeViewModel() { this.EmployeeResultat = new Employee(); this.ListePoste = DAOPoste.ListerPoste(); if (this.ListePoste.Count > 0) { this.PosteConcerne = ListePoste[0]; } this.AjouterEmployeeCommand = new RelayCommand(AjouterEmployee); }