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);
}