public void CopyTo(TAGBase tag) { tag.Active = true; tag.Title = Title; tag.Artist = Artist; tag.Album = Album; tag.Comment = Comment; tag.TrackNumber = TrackNumber; tag.Year = Year; tag.Genre = Genre; }
public void CopyNonEmptyValuesTo(TAGBase tag) { if (!Active) return; if (!String.IsNullOrEmpty(Title)) tag.Title = Title; if (!String.IsNullOrEmpty(Album)) tag.Album = Album; if (!String.IsNullOrEmpty(Artist)) tag.Artist = Artist; if (!String.IsNullOrEmpty(Comment)) tag.Comment = Comment; if (Year !=0) tag.Year = Year; if (TrackNumber !=0) tag.TrackNumber = TrackNumber; if (Genre !=255) tag.Genre = Genre; }