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; }
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; }