예제 #1
0
        public void CreatePlaylist(TypeOfPlay typeOfPlay)
        {
            this.TypeOfPlay = typeOfPlay;

            switch (this.TypeOfPlay)
            {
            case TypeOfPlay.Normal:
                PlayList = new NormalPlaylist();
                break;

            case TypeOfPlay.Random:
                PlayList = new RandomPlaylist();
                break;

            case TypeOfPlay.Reversed:
                PlayList = new ReversedPlaylist();
                break;

            default:
                break;
            }

            this.PlayList.Songs = this.Songs.ToList();
            PlayList.First();
            this.CurrentSong = PlayList.CurrentItem;
        }