Esempio n. 1
0
 public BasicSongProgressViewModel(IMP3Player mp3, IProgressMusicPlayer player, IPrepareSong prepare)
 {
     _mp3     = mp3;
     _player  = player;
     _prepare = prepare;
     _timer   = new Timer(1000); //i think that every second is fine.
     if (Aggregator == null)
     {
         throw new BasicBlankException("Needs event aggregator before doing the progress");
     }
     //was not fine because something else needed it before this point.
     Aggregator.Subscribe(this);
 }
 public PlaylistSongProgressViewModel(IMP3Player mp3, IPlaylistSongProgressPlayer player, IPrepareSong prepare) : base(mp3, player, prepare)
 {
     _player = player;
     _player.UpdateProgress = UpdateProgress;
 }