コード例 #1
0
 public AlbumViewModel(Album album, string categoryTitle)
 {
     _album = album;
     _categoryTitle = categoryTitle;
     _progressValue = 0;
     _timeLeftString = "";
 }
コード例 #2
0
 private static Album CreateAlbumFromDiscoveryItem(DiscoveryItem di)
 {
     var album = new Album()
     {
         Genre = di.Genre,
         SubGenre = di.SubGenre,
         IsExplicit = di.IsExplicit,
         Label = di.Label,
         Title = di.Title,
         Artist = di.Text,
         Duration = di.Duration,
         ImageUrl = di.ImageUrl,
         ItemId = di.ItemId,
         LongDescription = di.LongDescription,
         Rank = di.Rank,
         BingId = di.BingId
     };
     var releasedDate = Convert.ToDateTime(di.ReleaseDate);
     album.ReleasedYear = releasedDate.Year;
     return album;
 }