public virtual void AddItem(string name, string groupName, double expectedValue, CurrencyAbbrev c = CurrencyAbbrev.USD, DateTime?atTime = null, TimeSpan?dueFrequency = null) { var amt = new Pecuniam(Convert.ToDecimal(expectedValue), c); AddItem(name, groupName, amt, atTime, dueFrequency); }
public virtual void SetHistoricData(IEnumerable <Tuple <DateTime, decimal> > data, CurrencyAbbrev currency) { if (data == null || !data.Any()) { return; } _historicData.Clear(); foreach (var tuple in data) { if (_historicData.ContainsKey(tuple.Item1)) { continue; } _historicData.Add(tuple.Item1, new Pecuniam(tuple.Item2, currency)); } }
public Currency(CurrencyAbbrev v) { _abbrev = v; }
public Pecuniam(Decimal amount, CurrencyAbbrev c = CurrencyAbbrev.USD) { _amount = amount; _currency = new Currency(c); }