private async void DeleteAccount() { if (await dialogService.ShowConfirmMessage(Strings.DeleteTitle, Strings.DeleteAccountConfirmationMessage)) { accountRepository.Delete(accountRepository.Selected); balanceViewModel.UpdateBalanceCommand.Execute(null); navigationService.GoBack(); } }
private async void Delete(PaymentViewModel paymentViewModel) { if (!await dialogService.ShowConfirmMessage(Strings.DeleteTitle, Strings.DeletePaymentViewModelConfirmationMessage)) { return; } paymentRepository.Delete(paymentViewModel); LoadedCommand.Execute(null); }
private async void Delete(Account item) { if (item == null) { return; } if (await dialogService.ShowConfirmMessage(Strings.DeleteTitle, Strings.DeleteAccountConfirmationMessage)) { accountRepository.Delete(item); } }
private async void DeleteCategory(Category categoryToDelete) { if (await DialogService.ShowConfirmMessage(Strings.DeleteTitle, Strings.DeleteCategoryConfirmationMessage)) { if (Categories.Contains(categoryToDelete)) { Categories.Remove(categoryToDelete); } CategoryRepository.Delete(categoryToDelete); } }
private async void Delete() { if (await dialogService.ShowConfirmMessage(Strings.DeleteTitle, Strings.DeletePaymentViewModelConfirmationMessage)) { if (await paymentManager.CheckForRecurringPayment(SelectedPayment)) { paymentRepository.DeleteRecurring(SelectedPayment); } paymentRepository.Delete(paymentRepository.Selected); accountRepository.RemovePaymentAmount(SelectedPayment); navigationService.GoBack(); } }