public AlbumInfo(AlbumInfo copy) { if (copy == null) return; Filename = copy.Filename; Title = copy.Title; Artist = copy.Artist; Year = copy.Year; Genre = copy.Genre; Publisher = copy.Publisher; ReleaseId = copy.ReleaseId; GracenoteId = copy.GracenoteId; Volume = copy.Volume; Tracks = copy.Tracks.Select(t => new Track(t)).ToList(); }
public UndoEdit() { // Save current data in constructor if (Program.Album != null) Program.CurrentState = new AlbumInfo(Program.Album); m_State = Program.CurrentState; }
public Track(AlbumInfo a, ParkSquare.Gracenote.Track t) : this() { Title = t.Title; Artist = t.Artist; if (string.IsNullOrWhiteSpace(Artist)) Artist = a.Artist; }
public Track(AlbumInfo a, Hqub.MusicBrainz.API.Entities.Track t) : this() { Title = t.Recording.Title; Artist = String.Join(", ", t.Recording.Credits.Select(c => c.Artist.Name).ToArray()); if (string.IsNullOrWhiteSpace(Artist)) Artist = a.Artist; LengthSeconds = (float)t.Length / 1000; }