static void GetUserProfileImage(TraktUserProfile userProfile)
        {
            string url       = userProfile.Avatar;
            string localFile = userProfile.Avatar.LocalImageFilename(ArtworkType.Avatar);

            GUIImageHandler.DownloadImage(url, localFile);
        }
        private void PublishSkinProperties(TraktUserProfile userProfile)
        {
            if (userProfile == null)
            {
                return;
            }

            // Publish User Properties
            GUICommon.SetUserProperties(userProfile);

            // Publish Statistics
            GUICommon.SetStatisticProperties(userProfile.Stats);
        }
        private void LoadUserProfile()
        {
            GUIBackgroundTask.Instance.ExecuteInBackgroundAndCallback(() =>
            {
                return(UserProfile);
            },
                                                                      delegate(bool success, object result)
            {
                if (success)
                {
                    // Get UserProfile from Result Handler
                    TraktUserProfile userProfile = result as TraktUserProfile;

                    // Publish User Profile Properties
                    PublishSkinProperties(userProfile);

                    // Load Activity Facade
                    LoadActivityTypes();
                }
            }, Translation.GettingUserProfile, true);
        }