コード例 #1
0
        protected override void OnEventRaised(ViewModelBase sender, ChangedEventBase eventArgs)
        {
            if (eventArgs.GetType() == typeof(UserProfileChangedEvent))
            {
                var profileChanged = (UserProfileChangedEvent)eventArgs;

                CurrentUser.FirstName   = profileChanged.ChangedUser.FirstName;
                CurrentUser.LastName    = profileChanged.ChangedUser.LastName;
                CurrentUser.Description = profileChanged.ChangedUser.Description;

                if (profileChanged.ProfilePicture != null)
                {
                    CurrentUserProfilePicture = profileChanged.ProfilePicture;
                }
            }
        }
コード例 #2
0
 protected virtual void OnEventRaised(ViewModelBase sender, ChangedEventBase eventArgs)
 {
 }