Пример #1
0
 void FlushCache()
 {
     Framework.Albums.Clear();
     Framework.Artists.Clear();
     Framework.Genres.Clear();
     Framework = null;
 }
Пример #2
0
        public RPMusicBlob GetMusicFramework()
        {
            RPMusicBlob blob = new RPMusicBlob();

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

            return(blob);
        }
Пример #3
0
        public void CheckInitialised()
        {
            if (Framework != null)
            {
                return;
            }

            using (WMPManager manager = new WMPManager())
            {
                Framework = manager.GetMusicFramework();
                InitCacheTimer();
            }
        }
Пример #4
0
        public string MusicFrameworkAsXML()
        {
            RPMusicBlob blob = GetMusicFramework();

            return(XMLHelper.Serialize <RPMusicBlob>(blob));
        }