Exemplo n.º 1
0
        public static void AddSongToUpNextList(SongModel song)
        {
            SongModel        newSong         = song.Copy();
            List <SongModel> NewPlayingQueue = new List <SongModel>(upNextList);

            newSong.PlayingKey = MyUtilites.MyFunction.GenerateCode();
            NewPlayingQueue.Add(newSong);

            upNextList = NewPlayingQueue;
            UpNextListChange();
        }
Exemplo n.º 2
0
        public static void AddSongToUpNextListAndPlay(SongModel song)
        {
            if (song == null)
            {
                return;
            }
            SongModel newSong = song.Copy();
            //upNextList.Add(song);
            List <SongModel> NewPlayingQueue = new List <SongModel>(upNextList);

            newSong.PlayingKey = MyUtilites.MyFunction.GenerateCode();
            NewPlayingQueue.Add(newSong);

            upNextList = NewPlayingQueue;

            UpNextListChange();
            ChangeSongToPlayEvent(upNextList.Count - 1);
        }