예제 #1
0
        public RPMusicBlob GetMusicFramework()
        {
            RPMusicBlob blob = new RPMusicBlob();

            blob.Artists = GetAllArtists();
            blob.Albums = GetAllAlbums();
            blob.Genres = GetAllGenres();

            return blob;
        }
예제 #2
0
        public void CheckInitialised()
        {
            if (Framework != null) return;

            using (WMPManager manager = new WMPManager())
            {
                Framework = manager.GetMusicFramework();
                InitCacheTimer();
            }
        }
예제 #3
0
 void FlushCache()
 {
     Framework.Albums.Clear();
     Framework.Artists.Clear();
     Framework.Genres.Clear();
     Framework = null;
 }
예제 #4
0
 private MusicCache()
 {
     Framework = null;
     LastAccessed = DateTime.Now;
 }