TraktPlugin.GUI.GUIRelatedShows.LoadRelatedShows C# (CSharp) Méthode

LoadRelatedShows() private méthode

private LoadRelatedShows ( ) : void
Résultat void
        private void LoadRelatedShows()
        {
            GUIUtils.SetProperty("#Trakt.Items", string.Empty);

            GUIBackgroundTask.Instance.ExecuteInBackgroundAndCallback(() =>
            {
                if (hideWatchedButton != null)
                {
                    GUIControl.DisableControl((int)TraktGUIWindows.RelatedShows, hideWatchedButton.GetID);
                }
                return RelatedShows;
            },
            delegate(bool success, object result)
            {
                if (hideWatchedButton != null)
                {
                    GUIControl.EnableControl((int)TraktGUIWindows.RelatedShows, hideWatchedButton.GetID);
                }

                if (success)
                {
                    IEnumerable<TraktShowSummary> shows = result as IEnumerable<TraktShowSummary>;
                    SendRelatedShowsToFacade(shows);
                }
            }, Translation.GettingRelatedShows, true);
        }