Example #1
0
        /// <summary>
        /// Changes the image of the user.
        /// </summary>
        private void ChangeImage()
        {
            var imagePickerViewModel = new ImagePickerViewModel()
            {
                TitleText = UIText.IMAGE_PICKER_WINDOW_TITLE
            };

            _messagingService.ShowCustomMessageDialog(Constants.PICTURE_PICKER_VIEW, imagePickerViewModel);
            if (imagePickerViewModel.IsOk)
            {
                var imageData = imagePickerViewModel.Image;
                if (null != imageData)
                {
                    Picture = imageData;
                }
            }
        }
Example #2
0
 /// <summary>
 /// Changes the image of the user.
 /// </summary>
 private void ChangeImage()
 {
     var imagePickerViewModel = new ImagePickerViewModel() { TitleText = UIText.IMAGE_PICKER_WINDOW_TITLE };
     _messagingService.ShowCustomMessageDialog(Constants.PICTURE_PICKER_VIEW, imagePickerViewModel);
     if (imagePickerViewModel.IsOk)
     {
         var imageData = imagePickerViewModel.Image;
         if (null != imageData)
             Picture = imageData;
     }
 }