public void ClearAudioTracks() { SortedPlaylist.Clear(); if (ShuffledPlaylist != null) { ShuffledPlaylist.Clear(); UnplayedTracks.Clear(); } }
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; } } }