Пример #1
0
        public void ClearAudioTracks()
        {
            SortedPlaylist.Clear();

            if (ShuffledPlaylist != null)
            {
                ShuffledPlaylist.Clear();
                UnplayedTracks.Clear();
            }
        }
Пример #2
0
        private void RemoveTrackFromUnplayedTracksList(AudioTrack trackToRemove, ref bool trackFound)
        {
            for (int index = 0; index < UnplayedTracks.Count; index++)
            {
                AudioTrack track = UnplayedTracks[index];

                if (trackToRemove.Equals(track))
                {
                    UnplayedTracks.RemoveAt(index);

                    trackFound = true;

                    break;
                }
            }
        }