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(); }
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); }