Ejemplo n.º 1
0
 /// <summary>
 /// Matches song titles, only matches if the titles are exactly the same, needs extending
 /// </summary>
 /// <returns></returns>
 public void MatchTheSelectedSongToTheAvailableSongs()
 {
     //this matches album songs to zune website songs in the details view
     //Hold Your Colour ---- hold your colour (Album) = MATCH
     //Hold your colour ---- hold your face = NO MATCH
     this.SelectedSong = AvailableZuneTracks.Where(song => song.TrackTitle.ToLower()
                                                   .Contains(SongDetails.TrackTitle.ToLower()))
                         .FirstOrDefault();
 }
Ejemplo n.º 2
0
        private void UpdateDetail(WebAlbum albumMetaData)
        {
            SelectedAlbumTitle = albumMetaData.Title;

            DispatcherHelper.CheckBeginInvokeOnUI(() =>
            {
                SelectedAlbumSongs.Clear();
                foreach (var track in albumMetaData.Tracks)
                {
                    var tnum         = new TrackWithTrackNum();
                    tnum.TrackNumber = track.TrackNumber;
                    tnum.TrackTitle  = track.Title;

                    SelectedAlbumSongs.Add(tnum);
                }
            });
        }