private void OnUserInfoUpdated(object sender, UserInfoUpdatedEventArgs e)
        {
            Dispatcher.BeginInvoke(() => {
                if (e.UserId != Cinderella.CinderellaCore.CurrentUser.ResourceId)
                    return;

                UpdateInfoView();
            });
        }
        // User info returned
        private void OnUserInfoReturned(object sender, GetUserInfoEventArgs e)
        {
            JObject json = JObject.Parse(e.Response);
            User user = UserFactory.UserWithUserInfoJObject(json);

            // Dispatch event
            UserInfoUpdatedEventArgs evt = new UserInfoUpdatedEventArgs();
            evt.UserId = e.UserId;
            UserInfoUpdated.DispatchEvent(this, evt);
        }
        private void OnUserProfileUpdated(object sender, UserInfoUpdatedEventArgs e)
        {
            Dispatcher.BeginInvoke(() => {
                if (e.UserId != UserSource.ResourceId)
                    return;

                UpdateInfoView();
            });
        }