Esempio 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);
        }
Esempio n. 2
0
        static NinjaTrader.Cbi.Currency LocalCurrency()
        {
            RegionInfo regionInfo = new RegionInfo(CultureInfo.CurrentCulture.LCID);

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