コード例 #1
0
 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;
 }
コード例 #2
0
 private void DataManager_miseAJour(object sender, EventArgs e)
 {
     ListeCompo = CompositeurFactory.ConvertAllCompositeur(dataManager.ListeCompo);
     NotifyPropertyChanged("ListeCompo");
 }