Esempio n. 1
0
 public override void Activate ()
 {
     if (_contents == null)
     {
         Properties.Set<ISourceContents> ("Nereid.SourceContents", _contents = new AmpacheSourceContents ());
         _contents.ViewModel.PropertyChanged += Handle_contentsViewModelPropertyChanged;
     }
     base.Activate ();
     ServiceManager.PlaybackController.NextSource = this;
     ServiceManager.PlayerEngine.ConnectEvent(Next, PlayerEvent.RequestNextTrack);
     ServiceManager.PlaybackController.ShuffleModeChanged += HandleServiceManagerPlaybackControllerShuffleModeChanged;
 }
Esempio n. 2
0
 public override void Activate()
 {
     if (_contents == null)
     {
         Properties.Set <ISourceContents> ("Nereid.SourceContents", _contents = new AmpacheSourceContents());
         _contents.ViewModel.PropertyChanged += Handle_contentsViewModelPropertyChanged;
     }
     base.Activate();
     ServiceManager.PlaybackController.NextSource = this;
     ServiceManager.PlayerEngine.ConnectEvent(Next, PlayerEvent.RequestNextTrack);
     ServiceManager.PlaybackController.ShuffleModeChanged += HandleServiceManagerPlaybackControllerShuffleModeChanged;
 }