// Je n'arrive pas a recuperer le parametre du relay command, ces lignes de code permettent de tester le programme public ListeSessionViewModel() { LaNavigation.Session = null; ListeSession = DAOSession.ListerSession(); this.AjouterSessionCommand = new RelayCommand(AjouterSession); this.DetailSessionCommand = new RelayCommand(DetailSession); }
private void ValiderSession() { if (SessionSelectionner != null) { DAOSession.ValiderSession(SessionSelectionner); navigate.NavigateToNotification(); } }
public DetailOrganismeViewModel() { this.OrganismeConcerne = DAOOrganisme.ConstructeurOrganisme(LaNavigation.Organisme); this.DetailOrganismeFormationCommand = new RelayCommand(DetailOrganismeFormation); this.ListeSessionConcerne = DAOSession.ListerSessionPourUnOrganisme(OrganismeConcerne); this.DetailSessionCommand = new RelayCommand(DetailSession); this.AppelSkypeCommand = new RelayCommand(AppelSkype); this.NameSkype = this.OrganismeConcerne.NomSkype == null ? false : true; }
public NotificationViewModel() { this.ListeSessionAValider = DAOSession.ListerSessionFinisNonValider(); this.ValiderSessionCommand = new RelayCommand(ValiderSession); this.DetailSessionCommand = new RelayCommand(DetailSession); this.ListeEmployeeNonConforme = DAOEmployeeFormation.ListerEmployeeFormationManquante(); this.DetailEmployeeCommand = new RelayCommand(DetailEmployee); this.CreerSessionCommand = new RelayCommand(CreerSession); }
public DetailFormationViewModel() { this.Formation = DAOFormation.ConstructeurFormation(LaNavigation.Formation); this.ListeSessionConcerne = DAOSession.ListerSessionPourUneFormation(Formation); this.CreerSessionCommand = new RelayCommand(CreerSession); this.AjouterOrganismeFormationCommand = new RelayCommand(AjouterOrganismeFormation); this.DetailOrganismeCommand = new RelayCommand(DetailOrganisme); this.DetailSessionCommand = new RelayCommand(DetailSession); }
public DetailSessionViewModel() { this.SessionConcerne = DAOSession.ConstructeurSession(LaNavigation.Session); this._nbrPlaceRestante = SessionConcerne.NbrPlaceTotal - SessionConcerne.ListeEmployeeConcernees.Count(); this.PrixTotal = SessionConcerne.OrganismeFomationConcerne.Prix * SessionConcerne.NbrPlaceTotal; this.ListeEmployeeManquant = DAOEmploye.ListerEmployeeManquantAUneSession(SessionConcerne); this.DetailOrganismeCommand = new RelayCommand(DetailOrganisme); this.AjouterEmployeeCommand = new RelayCommand(AjouterEmployee); this.DetailEmployeeCommand = new RelayCommand(DetailEmployee); this.DetailFormationCommand = new RelayCommand(DetailFormation); }
private void AjouterSession() { DAOSession.AjouterSession(SessionNouvelle, OrganismeFormationConcerne); navigate.NavigateToAjouterSession(); }