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(); } }
void FlushCache() { Framework.Albums.Clear(); Framework.Artists.Clear(); Framework.Genres.Clear(); Framework = null; }
private MusicCache() { Framework = null; LastAccessed = DateTime.Now; }