private bool GetLoadingParameter() { if (_loadParameter == null) { // maybe re-loading, so check previous window id if (Show != null && Show.Ids.Trakt != null && 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.Number != loadingParam.Season.Number) { PreviousSelectedIndex = 0; } } Show = loadingParam.Show; Season = loadingParam.Season; if (Show == null || Show.Ids.Trakt == null || Season == null) { return(false); } return(true); }
private void PublishSeasonSkinProperties(TraktSeasonSummary season) { GUICommon.SetSeasonProperties(Show, season); }