コード例 #1
0
 public void LoadPlaylist(PlaylistItemCollection playlistItemCollection)
 {            
     if (playlistItemCollection == null) return;
     StopPlaybackAction();
     Items.Clear();
     Items.AddRange(playlistItemCollection);
 }
コード例 #2
0
 public void LoadPlaylist(Playlist playlist)
 {
     EventAggregator.Publish(new StopMessage());
     PlaylistManagementService.Clear();
     GoBack();
     var playlistItemCollection = new PlaylistItemCollection();
     playlistItemCollection.AddRange(playlist.Entries.Select(e => e.AsPlaylistItem(SubsonicService)));
     PlaylistManagementService.LoadPlaylist(playlistItemCollection);
 }
コード例 #3
0
        public PlaylistManagementService(IEventAggregator eventAggregator)
        {
            _eventAggregator = eventAggregator;
            _eventAggregator.Subscribe(this);

            StartPlaybackAction = StartPlayback;
            StopPlaybackAction = StopPlayback;
            GetNextTrackNumberFunc = GetNextTrackNumber;
            GetPreviousTrackNumberFunc = GetPreviousTrackNumber;

            Items = new PlaylistItemCollection();
            PlaylistHistory = new PlaylistHistoryStack();
            _randomNumberGenerator = new Random();

            CurrentItem = null;
            _wasEmpty = true;
        }
コード例 #4
0
 public MockPlyalistManagementService()
 {
     Items                   = new PlaylistItemCollection();
     MethodCalls             = new Dictionary <string, object>();
     SetStateFromStringCalls = new List <string>();
 }
コード例 #5
0
 public void LoadPlaylist(PlaylistItemCollection playlistItemCollection)
 {
     LoadPlaylistCallCount++;
     MethodCalls.Add("LoadPlaylist", playlistItemCollection);
 }
コード例 #6
0
 public void LoadPlaylist(PlaylistItemCollection playlistItemCollection)
 {
     throw new System.NotImplementedException();
 }
コード例 #7
0
 public MockPlyalistManagementService()
 {
     Items = new PlaylistItemCollection();
 }
コード例 #8
0
 public void LoadPlaylist(PlaylistItemCollection playlistItemCollection)
 {
     throw new System.NotImplementedException();
 }
コード例 #9
0
 public MockPlyalistManagementService()
 {
     Items = new PlaylistItemCollection();
 }
コード例 #10
0
 public void LoadPlaylist(PlaylistItemCollection playlistItemCollection)
 {
     LoadPlaylistCallCount++;
     MethodCalls.Add("LoadPlaylist", playlistItemCollection);
 }
コード例 #11
0
 public MockPlyalistManagementService()
 {
     Items = new PlaylistItemCollection();
     MethodCalls = new Dictionary<string, object>();
     SetStateFromStringCalls = new List<string>();
 }