void FlushCache() { Framework.Albums.Clear(); Framework.Artists.Clear(); Framework.Genres.Clear(); Framework = null; }
public RPMusicBlob GetMusicFramework() { RPMusicBlob blob = new RPMusicBlob(); blob.Artists = GetAllArtists(); blob.Albums = GetAllAlbums(); blob.Genres = GetAllGenres(); return(blob); }
public void CheckInitialised() { if (Framework != null) { return; } using (WMPManager manager = new WMPManager()) { Framework = manager.GetMusicFramework(); InitCacheTimer(); } }
public string MusicFrameworkAsXML() { RPMusicBlob blob = GetMusicFramework(); return(XMLHelper.Serialize <RPMusicBlob>(blob)); }