private async void DeleteSelectedImage() { if (!await _pageDialogService.DisplayAlertAsync("Warning", "Are you sure you want to delete this image?", "Yes", "No") && !IsUnitTesting) { return; } if (SelectedImage == null) { return; } IsLoading = true; AlbumItem item = SelectedImage.Items.First().Image; Images.Remove(SelectedImage); await _azure.DeleteImage(item); IsLoading = false; if (Images.Count < 1) { await _navigationService.GoBackAsync(new NavigationParameters { ["refreshing"] = true }); } }