private void PublishSeasonSkinProperties(TraktListItem item)
        {
            if (item == null || item.Season == null)
            {
                return;
            }

            GUICommon.SetSeasonProperties(item.Show, item.Season);

            PublishShowSkinProperties(item);
        }
Example #2
0
        private void OnEpisodeSelected(GUIListItem item, GUIControl parent)
        {
            var episode = item.TVTag as TraktEpisode;

            if (episode == null)
            {
                return;
            }

            GUICommon.SetEpisodeProperties(episode);

            // set season properties as well, we may show a flattened view
            // with all episodes in season
            GUICommon.SetSeasonProperties(Season);
        }
        private void OnEpisodeSelected(GUIListItem item, GUIControl parent)
        {
            var episodeSummary = item.TVTag as TraktEpisodeSummary;

            if (episodeSummary == null)
            {
                return;
            }

            PreviousSelectedIndex = Facade.SelectedListItemIndex;

            GUICommon.SetEpisodeProperties(episodeSummary.Episode);

            // set season properties as well, we may show a flattened view
            // with all episodes in a show
            GUICommon.SetSeasonProperties(Season);
            GUICommon.SetShowProperties(Show);
        }
        private void PublishCommentSkinProperties(TraktCommentItem item)
        {
            if (item == null || item.Comment == null)
            {
                return;
            }

            // set shout/review properties
            GUICommon.SetCommentProperties(item.Comment, item.IsWatched());

            // set user properties
            GUICommon.SetUserProperties(item.Comment.User);

            // set movie, show, season, episode or list properties
            // set show and episode properties for episode comments
            // set show and season for season comments
            if (item.Movie != null)
            {
                GUICommon.SetMovieProperties(item.Movie);
            }
            else if (item.Show != null)
            {
                GUICommon.SetShowProperties(item.Show);
                if (item.Season != null)
                {
                    GUICommon.SetSeasonProperties(item.Show, item.Season);
                }
                if (item.Episode != null)
                {
                    GUICommon.SetEpisodeProperties(item.Show, item.Episode);
                }
            }
            else if (item.List != null)
            {
                GUICommon.SetListProperties(item.List, CurrentUser);
            }
        }
 private void PublishSeasonSkinProperties(TraktSeasonSummary season)
 {
     GUICommon.SetSeasonProperties(Show, season);
 }
 private void PublishSeasonSkinProperties(TraktShowSeason season)
 {
     GUICommon.SetSeasonProperties(season);
 }