Ejemplo n.º 1
0
        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;
        }
        private void PublishPersonSkinProperties(TraktListItem item)
        {
            if (item == null || item.Person == null)
            {
                return;
            }

            GUICommon.SetPersonProperties(item.Person);
        }
Ejemplo n.º 3
0
        private void OnCrewSelected(GUIListItem item, GUIControl parent)
        {
            PreviousSelectedIndex = Facade.SelectedListItemIndex;

            var selectedItem = item as GUIPersonListItem;

            if (item == null)
            {
                return;
            }

            GUIUtils.SetProperty("#Trakt.Person.CreditType", Translation.Job);
            GUIUtils.SetProperty("#Trakt.Person.CreditValue", GUICommon.GetTranslatedCreditJob(selectedItem.Job.Job));
            GUICommon.SetPersonProperties(selectedItem.Person);
        }
 private void PublishSkinProperties(TraktPersonSummary person)
 {
     GUICommon.SetPersonProperties(person);
 }