Example #1
0
 public void Sort(Playlist playlist)
 {
     //var sorted = playlist.AllSongs.ToList();
     //sorted.Sort((song, song1) => string.Compare(song1.Title,song.Title));
     //playlist.Clear();
     //playlist.Add(sorted);
 }
Example #2
0
        public void Sort(Playlist playlist)
        {
            //int n = playlist.SongCount;
            //RNGCryptoServiceProvider provider = new RNGCryptoServiceProvider();
            //while (n > 1)
            //{
            //    byte[] box = new byte[1];

            //    do provider.GetBytes(box);
            //    while (!(box[0] < n * (Byte.MaxValue / n)));

            //    int k = box[0] % n;
            //    n--;
            //    playlist.Move(n, k);
            //}
        }
Example #3
0
 public virtual void AddPlaylist(Playlist playlist)
 {
     _playlists.Add(playlist);
 }