private bool GetLoadingParameter() { if (_loadParameter == null) { // maybe re-loading, so check previous window id if (Show != null && !string.IsNullOrEmpty(Show.Tvdb) && Season != null) return true; return false; } var loadingParam = _loadParameter.FromJSON<SeasonLoadingParameter>(); if (loadingParam == null) return false; // reset previous selected index if (Show != null && Season != null) { if (Show.Title != loadingParam.Show.Title || Season.Season != loadingParam.Season.Season) PreviousSelectedIndex = 0; } Show = loadingParam.Show; Season = loadingParam.Season; if (Show == null || string.IsNullOrEmpty(Show.Tvdb) || Season == null) return false; return true; }
internal static void SetSeasonProperties(TraktShowSeason season) { GUIUtils.SetProperty("#Trakt.Season.Number", season.Season.ToString()); GUIUtils.SetProperty("#Trakt.Season.EpisodeCount", season.EpisodeCount.ToString()); GUIUtils.SetProperty("#Trakt.Season.Url", season.Url); GUIUtils.SetProperty("#Trakt.Season.PosterImageFilename", season.Images.PosterImageFilename); }
private void PublishSeasonSkinProperties(TraktShowSeason season) { GUICommon.SetSeasonProperties(season); }