예제 #1
0
        private static void SortAndShuffleExample()
        {
            var player = new PlayerInstance();

            Song currentPlayingSong = null;

            Song[] songs  = null;
            Album  album  = null;
            Artist artist = null;

            CreatePlayerItems(out songs, out artist, out album);
            player.Add(songs);

            Console.WriteLine("-- Playing Songs --");
            System.Threading.Thread.Sleep(3000);
            player.Play(out currentPlayingSong);

            Console.WriteLine("-- Suffle Songs --");
            System.Threading.Thread.Sleep(3000);
            player.Shuffle();
            player.Play(out currentPlayingSong);

            Console.WriteLine("-- Sort Songs --");
            System.Threading.Thread.Sleep(3000);
            player.SortByTitle();
            player.Play(out currentPlayingSong);
        }