Beispiel #1
0
        public override string ToString()
        {
            String s = "";

            foreach (KeyValuePair <int, decimal> pair in payments)
            {
                if (pair.Value != 0)
                {
                    s += pair.Value + " " + CurrentTypes.getType(pair.Key) + "\n";
                }
            }

            return(s);
        }
Beispiel #2
0
 public override string ToString() => (currencyType != -1) ? value + " " + CurrentTypes.getType(currencyType) : "Unadditional values";
Beispiel #3
0
 public Money(decimal value, String currencyType)
 {
     this.value        = value;
     this.currencyType = CurrentTypes.addType(currencyType);
 }
Beispiel #4
0
 public Money(decimal value, int currencyType)
 {
     this.value        = value;
     this.currencyType = (CurrentTypes.getType(currencyType) != null) ? currencyType : -1;
 }