Exemple #1
0
        private void QueueRemainingTracksWithoutShuffling(BufferList playQueue, BufferList tracklist)
        {
            int indexOfTrack = tracklist.CurrentItemIndex;

            if (indexOfTrack > 0)
            {
                var preceedingTracks = tracklist.Take(indexOfTrack).Cast <TrackBufferItem>().Select(i => i.Model);
                playbackManager.PutTracksIntoPreviousTracks(preceedingTracks);
            }
            for (int index = indexOfTrack + 1; index < tracklist.Count; index++)
            {
                playQueue.Add(tracklist[index]);
            }
        }