Пример #1
0
        public async void GetFavouriteTracks()
        {
            PlayLists.Clear();
            var tracksSource = await _userPlayListService.GetFavouriteTracks();

            AddTracks(tracksSource);
        }
Пример #2
0
 public void LoadPlaylists()
 {
     PlayLists.Clear();
     foreach (var playlist in MusicManager.Instance.PlayLists)
     {
         PlayLists.Add(playlist);
     }
 }
Пример #3
0
 /// <summary>
 /// Остановка воспроизведения
 /// </summary>
 public void Stop()
 {
     Bass.BASS_ChannelStop(Stream);
     Bass.BASS_StreamFree(Stream);
     if (PlayLists != null)
     {
         PlayLists.Clear();
     }
 }
Пример #4
0
        public async void GetPlayListsAndTracks()
        {
            PlayLists.Clear();
            PlayListsAndTracks = new Dictionary <ExtendedPlayList, List <ExtendedTrack> >();
            PlayListsAndTracks = await _userPlayListService.GetPlayLists();

            foreach (var playlist in PlayListsAndTracks.Keys)
            {
                PlayLists.Add(playlist);
            }
            AddTracks(PlayListsAndTracks[PlayLists[0]]);
        }