Esempio n. 1
0
        public async void GetFavouriteTracks()
        {
            PlayLists.Clear();
            var tracksSource = await _userPlayListService.GetFavouriteTracks();

            AddTracks(tracksSource);
        }
Esempio n. 2
0
 public void LoadPlaylists()
 {
     PlayLists.Clear();
     foreach (var playlist in MusicManager.Instance.PlayLists)
     {
         PlayLists.Add(playlist);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Остановка воспроизведения
 /// </summary>
 public void Stop()
 {
     Bass.BASS_ChannelStop(Stream);
     Bass.BASS_StreamFree(Stream);
     if (PlayLists != null)
     {
         PlayLists.Clear();
     }
 }
Esempio n. 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]]);
        }