private void OnDeleteTransactionCommandExecuted(LedgerTransaction transaction)
{
if (IsReadOnly)
{
return;
}
if (InLedgerEntryMode)
{
this.wasChanged = true;
this.reconService.RemoveTransaction(LedgerEntry, transaction.Id);
ShownTransactions.Remove(transaction);
}
else if (InBalanceAdjustmentMode)
{
this.wasChanged = true;
this.reconService.CancelBalanceAdjustment(this.entryLine, transaction.Id);
ShownTransactions.Remove(transaction);
}
RaisePropertyChanged(() => TransactionsTotal);
RaisePropertyChanged(() => LedgerEntry);
}