public string ContainerName(LibraryItem aItem) { return(aItem.Genre); }
public NodeContainer Create(string aName, LibraryItem aItem, UInt32 aId) { return(new NodeGenre(aName, aId, iItemComparer)); }
public string ContainerName(LibraryItem aItem) { return(aItem.Album); }
public string ContainerName(LibraryItem aItem) { return(string.IsNullOrEmpty(aItem.AlbumArtist) ? aItem.Artist : aItem.AlbumArtist); }
public string ContainerKey(LibraryItem aItem) { return(aItem.Artist); }
public NodeItem(UInt32 aId, UInt32 aRefId, LibraryItem aLibraryItem) { iId = aId; iRefId = aRefId; iLibraryItem = aLibraryItem; }
private LibraryItem ReadItem(XmlDictReader aReader) { LibraryItem track = new LibraryItem(); while (!aReader.EndOfDict) { string propKey = aReader.ReadKey(); if (propKey == "Track ID") { track.TrackId = aReader.ReadValueLong(); } else if (propKey == "Name") { track.Name = aReader.ReadValueString(); } else if (propKey == "Artist") { track.Artist = aReader.ReadValueString(); } else if (propKey == "Album Artist") { track.AlbumArtist = aReader.ReadValueString(); } else if (propKey == "Composer") { track.Composer = aReader.ReadValueString(); } else if (propKey == "Album") { track.Album = aReader.ReadValueString(); } else if (propKey == "Genre") { track.Genre = aReader.ReadValueString(); } else if (propKey == "Kind") { track.Kind = aReader.ReadValueString(); } else if (propKey == "Size") { track.Size = aReader.ReadValueLong(); } else if (propKey == "Total Time") { track.TotalTime = aReader.ReadValueLong(); } else if (propKey == "Disc Number") { track.DiscNumber = aReader.ReadValueLong(); } else if (propKey == "Disc Count") { track.DiscCount = aReader.ReadValueLong(); } else if (propKey == "Track Number") { track.TrackNumber = aReader.ReadValueLong(); } else if (propKey == "Track Count") { track.TrackCount = aReader.ReadValueLong(); } else if (propKey == "Year") { track.Year = aReader.ReadValueLong(); } else if (propKey == "Date Modified") { track.DateModified = aReader.ReadValueDate(); } else if (propKey == "Date Added") { track.DateAdded = aReader.ReadValueDate(); } else if (propKey == "Bit Rate") { track.BitRate = aReader.ReadValueLong(); } else if (propKey == "Sample Rate") { track.SampleRate = aReader.ReadValueLong(); } else if (propKey == "Persistent ID") { track.PersistentId = aReader.ReadValueString(); } else if (propKey == "Track Type") { track.TrackType = aReader.ReadValueString(); } else if (propKey == "Location") { track.Location = aReader.ReadValueString(); } else { aReader.SkipValue(); } } return(track); }