Exemplo n.º 1
0
		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();
		}
Exemplo n.º 2
0
		public UndoEdit() {
			// Save current data in constructor
			if (Program.Album != null)
				Program.CurrentState = new AlbumInfo(Program.Album);
			m_State = Program.CurrentState;
		}
Exemplo n.º 3
0
		public Track(AlbumInfo a, ParkSquare.Gracenote.Track t)
			: this() {
			Title = t.Title;
			Artist = t.Artist;
			if (string.IsNullOrWhiteSpace(Artist))
				Artist = a.Artist;
		}
Exemplo n.º 4
0
		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;
		}