public void AddSong(SongDefinition song) { if (this.songs == null) { this.songs = new List <SongDefinition>(); } this.songs.Add(song); }
public SongDefinition AddSong(TrackId trackId) { if (this.songs == null) { this.songs = new List <SongDefinition>(); } SongDefinition songDefinition = new SongDefinition(); songDefinition.trackDataName = trackId.trackId; this.songs.Add(songDefinition); return(songDefinition); }
public bool RemoveSong(SongDefinition song) { return(songs.Remove(song)); }