private void InitProperties()
{
// Fanart
backdrop.GUIImageOne = FanartBackground;
backdrop.GUIImageTwo = FanartBackground2;
backdrop.LoadingImage = loadingImage;
// set context property
string title = string.IsNullOrEmpty(relatedShow.Title) ? relatedShow.TvdbId.ToString() : relatedShow.Title;
GUIUtils.SetProperty("#Trakt.Related.Show", title);
// hide watched
HideWatched = TraktSettings.HideWatchedRelatedShows;
// hide watched
if (hideWatchedButton != null)
{
GUIControl.SetControlLabel((int)TraktGUIWindows.RelatedShows, hideWatchedButton.GetID, Translation.HideWatched);
hideWatchedButton.Selected = HideWatched;
}
// no changes yet
RelationChanged = false;
// load last layout
CurrentLayout = (Layout)TraktSettings.RelatedShowsDefaultLayout;
// update button label
GUIControl.SetControlLabel(GetID, layoutButton.GetID, GUICommon.GetLayoutTranslation(CurrentLayout));
}