private void InitProperties() { // Fanart backdrop.GUIImageOne = FanartBackground; backdrop.GUIImageTwo = FanartBackground2; backdrop.LoadingImage = loadingImage; // publish person properties GUICommon.SetPersonProperties(CurrentPerson); // publish credit type GUICommon.SetProperty("#Trakt.Person.CreditTypeRaw", CurrentCreditType.ToString()); GUICommon.SetProperty("#Trakt.Person.CreditType", GUICommon.GetTranslatedCreditType(CurrentCreditType)); // load last layout CurrentLayout = (GUIFacadeControl.Layout)TraktSettings.PersonShowCreditsDefaultLayout; // Update Button States UpdateButtonState(); if (sortButton != null) { UpdateButtonState(); sortButton.SortChanged += (o, e) => { TraktSettings.SortByCreditShows.Direction = (SortingDirections)(e.Order - 1); PreviousSelectedIndex = 0; UpdateButtonState(); LoadCredits(); }; } return; }