Exemplo n.º 1
0
        public async void GetTrack()
        {
            var json = await clientDownload.GetJsonTop50("danceedm");

            var TopTrack = JsonConvert.DeserializeObject <Models.Charts>(json);

            TopTrack.collection.ForEach(item => ListTrack.Add(item.track));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Add a track
 /// </summary>
 /// <param name="_track"></param>
 public void AddTrack(Track _track)
 {
     if (CanEdit)
     {
         ListTrack.Add(_track);
     }
     ;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add a track in an album.
 /// </summary>
 /// <param name="track"></param>
 /// <returns></returns>
 public bool AddTrack(Track track)
 {
     foreach (var thetrack in ListTrack)
     {
         if ((thetrack.Title.Equals(track.Title) && thetrack.Album.Equals(track.Album)))
         {
             return(false);
         }
     }
     ListTrack.Add(track);
     return(true);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Add a track
 /// </summary>
 /// <param name="_track"></param>
 public void AddTrack(Track _track)
 {
     ListTrack.Add(_track);;
 }