コード例 #1
0
        private AvailableSeasonImages GetAvailableSeasonImages(int seasonNumber)
        {
            AvailableSeasonImages seasonImages;

            if (!_seasons.TryGetValue(seasonNumber, out seasonImages))
            {
                seasonImages           = new AvailableSeasonImages();
                _seasons[seasonNumber] = seasonImages;
            }
            return(seasonImages);
        }
コード例 #2
0
        private void AddBannerImage(Banner banner)
        {
            Image image = CreateImage(banner);

            image.WidthRatio  = 758;
            image.HeightRatio = 140;
            if (banner.Season.HasValue)
            {
                image.Description = TvShowHelper.GetSeasonName(banner.Season.Value);
                AvailableSeasonImages seasonImages = GetAvailableSeasonImages(banner.Season.Value);
                seasonImages.Banners.Add(image);
            }
            else
            {
                image.Description = "TV Show";
                _banners.Add(image);
            }
        }
コード例 #3
0
 private AvailableSeasonImages GetAvailableSeasonImages(int seasonNumber)
 {
     AvailableSeasonImages seasonImages;
     if (!_seasons.TryGetValue(seasonNumber, out seasonImages))
     {
         seasonImages = new AvailableSeasonImages();
         _seasons[seasonNumber] = seasonImages;
     }
     return seasonImages;
 }