示例#1
0
 /// <summary>
 /// Commits a withdraw
 /// </summary>
 /// <param name="withdraw">Widthdraw transaction</param>
 private void WithDraw(Transaction withdraw)
 {
     mcAccountBalance -= withdraw.Amount;
 }
示例#2
0
 /// <summary>
 /// Commits a deposit
 /// </summary>
 /// <param name="deposit">Deposit transaction</param>
 private void Deposit(Transaction deposit)
 {
     mcAccountBalance += deposit.Amount;
 }