Esempio n. 1
0
        private void OnRemoveTracksFromQueue(IEnumerable <object> tracks)
        {
            // FIXME : It seems that the check list box in the PlayQueueView doesn't discard the checked items after clicking remove.

            //for (int i = this.PlayQueueItems.Count - 1; i >= 0; i--)
            //{
            //    if (this.PlayQueueItems[i].IsSelected)
            //    {
            //        this.PlayQueueItems.RemoveAt(i);
            //    }
            //}
            var tracksToRemove = this.PlayQueueItems.Where(o => o.IsSelected).Select(o => o.Guid);

            _playbackService.RemoveTracksFromQueue(tracksToRemove);
        }