public void FindTrack(bool nextTrack) { if (nextTrack) { if (Index + 1 > AddedMusic.Count() - 1) { Index = 0; } else { Index++; } SetTrack(); } else { if (Index - 1 < 0) { Index = AddedMusic.Count() - 1; } else { Index--; } SetTrack(); } }
public void AddTrack(Song song) { AddedMusic.Add(song); Index = AddedMusic.Count() - 1; }