Exemplo n.º 1
0
 internal JukeController()
 {
     library   = new Library();
     catalogue = new SongCatalogue(library);
     //AsyncSongLoader.LoadCompleted += AsyncSongLoader_LoadCompleted;
     Player = new Player(library);
 }
Exemplo n.º 2
0
        public void SetupSongCatalogue(SongCatalogue _songCatalogue)
        {
            songCatalogue = _songCatalogue;

            //Mark free songs as unlocked on data initialization
            if(UnlockedSongs == null)
            {
                UnlockedSongs = songCatalogue.EndlessShapesSongs
                    .Where(song => song.price == 0)
                    .Select(song => song.Id).ToList();
            }
        }