public MainWindowViewModel() { dataManager = DataManager.Get(); ListeCompo = CompositeurFactory.ConvertAllCompositeur(dataManager.ListeCompo); AjouterCommand = new DelegateCommand(Ajouter); EditerCommand = new DelegateCommand(Editer, CanEditer); SupprimerCommand = new DelegateCommand(Supprimer, CanSupprimer); StopCommand = new DelegateCommand(Stop, CanStop); PlayCommand = new DelegateCommand(Play, CanPlay); PauseCommand = new DelegateCommand(Pause, CanPause); dataManager.miseAJour += DataManager_miseAJour; }
private void DataManager_miseAJour(object sender, EventArgs e) { ListeCompo = CompositeurFactory.ConvertAllCompositeur(dataManager.ListeCompo); NotifyPropertyChanged("ListeCompo"); }