Exemplo n.º 1
0
        public void UpdateCollections(IEnumerable <string> files)
        {
            TracksManager tracksManager = new TracksManager();

            AddToCollection(Tracks, tracksManager.GetTracksList(files));
            AddToCollection(Artists, tracksManager.GetArtists(Tracks));
            AddToCollection(Albums, tracksManager.GetAlbums(Tracks));

            CoreApp.InitializatePlayer(Tracks);
            CoreApp.Player.CurrentTrackChanged += Player_CurrentTrackChanged;
            CoreApp.Player.PositionChanged     += Player_PositionChanged;
        }