/// <summary> /// Add method increases the saldo for the user. Note only Enum specified values /// are accepted, by input hardware io interface. /// </summary> /// <param name="Input">One Input by Enumerator value at a time.</param> /// <param name="value">If you input a value more than once in a row, set this value.</param> public void Add(MyLocalCurrency Input, int value = 1) { // only valid currency input _userMoney += (int)Input; if (_moneyCollection.ContainsKey(Input)) { _moneyCollection[Input] += value; } else { _moneyCollection.Add(Input, value); } }
public void InsertMoney(MyLocalCurrency inPut) { userMoneyPool.Add(inPut); }