Beispiel #1
0
 /// <summary>
 /// Handles execution of ConfirmDeletePhotoCommand.
 /// Updates value of the IsConfirmPopup property.
 /// Deletes photo indicated by "PhotoPath".
 /// Checks if any error has occurred while deleting a photo.
 /// Navigates to the previous page.
 /// </summary>
 private void ExecuteConfirmDeletePhotoCommand()
 {
     IsConfirmPopup = false;
     if (_cameraModel.DeletePhoto(PhotoPath))
     {
         PhotoPath        = null;
         IsPreviewVisible = false;
         _pageNavigation.NavigateToPreviousPage();
     }
 }