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