private void TransactionEditor_TransactionUpdated(object sender, TransactionUpdatedEventArgs e) { if (this.transactionIsNew) { this.TransactionCreated?.Invoke(this, new TransactionCreatedEventArgs(e.NewTransaction)); } else { this.TransactionUpdated?.Invoke(this, e); } }
private void transactionEditor_TransactionUpdated(object sender, TransactionUpdatedEventArgs e) { if (this.transactionIsNew) { this.TransactionCreated.SafeInvoke(this, new TransactionCreatedEventArgs(e.NewTransaction)); } else { this.TransactionUpdated.SafeInvoke(this, e); } }
private void AccountRegister_TransactionUpdated(object sender, UI.TransactionUpdatedEventArgs e) { this.owner.UpdateTransaction(e.OldTransaction, e.NewTransaction); }