Ejemplo n.º 1
0
        public Money ToCurrency(string isocode)
        {
            Currency newc = MoneyString.FromString(isocode);
            Money    m    = new Money(this.Amount * CrossRate(newc, this.Currency), newc);

            return(m);
        }
Ejemplo n.º 2
0
        static NinjaTrader.Cbi.Currency LocalCurrency()
        {
            RegionInfo regionInfo = new RegionInfo(CultureInfo.CurrentCulture.LCID);

            return(MoneyString.FromString(regionInfo.ISOCurrencySymbol));
        }
Ejemplo n.º 3
0
 public override string ToString()
 {
     return(Amount.ToString() + MoneyString.Symbol(currency));
 }
Ejemplo n.º 4
0
 public Money(decimal amount, string isoCurrencySymbol) : this(amount, MoneyString.FromString(isoCurrencySymbol))
 {
 }
Ejemplo n.º 5
0
 public Money(string isoCurrencySymbol) : this(MoneyString.FromString(isoCurrencySymbol))
 {
 }