TraktPlugin.GUI.GUIPersonSummary.OnPageLoad C# (CSharp) Méthode

OnPageLoad() protected méthode

protected OnPageLoad ( ) : void
Résultat void
        protected override void OnPageLoad()
        {
            base.OnPageLoad();

            if (string.IsNullOrEmpty(_loadParameter) && CurrentPerson == null)
            {
                TraktLogger.Info("Exiting Person Summary as there is no loading parameter or current person set");
                GUIWindowManager.ActivateWindow(GUIWindowManager.GetPreviousActiveWindow());
                return;
            }

            // Clear GUI Properties
            ClearProperties();

            // Init Properties
            InitProperties();

            // Load the correct view
            switch (CurrentView)
            {
                case View.Summary:
                    LoadPersonSummary();
                    break;
                case View.MovieCredits:
                    LoadMovieCredits();
                    break;
                case View.ShowCredits:
                    LoadShowCredits();
                    break;
            }
        }