public void TransferMoney(Pocket myPocket, int money) { balance -= money; myPocket.AddMoney(money); OnMoneyTransfer?.Invoke(myPocket, money); OnAnyTransaction?.Invoke("TransferMoney: " + money); }
public void ConvertToCurrency(int money, char Cur, double rate) { OnMoneyConversion(money, Cur, rate); OnAnyTransaction?.Invoke("ConvertToCurrency: " + money); }
public void AddMoney(int a) { balance += a; OnMoneyAdded?.Invoke("Bank->AddMoney, added: " + a); OnAnyTransaction?.Invoke("Any transaction: added: " + a); }