public void WithdrawMoney(decimal amount) { if (amount <= Money) { Money -= amount; BalanceChange?.Invoke(this, new BalanceChangedArg(Action.Withdraw, amount)); } }
public void DepositMoney(decimal amount) { Money += amount; BalanceChange?.Invoke(this, new BalanceChangedArg(Action.Deposit, amount)); }