Exemplo n.º 1
0
        public string FromTextToText(string amt)
        {
            CurrencyInfo Currency = new CurrencyInfo(CurrencyInfo.Currencies.SaudiArabia);

            try
            {
                Decimal DAmt;
                Decimal.TryParse(amt, out DAmt);
                ToText totext = new ToText(DAmt, Currency);
                return(totext.ConvertToArabic());
            }
            catch
            {
                return("");
            }
        }
Exemplo n.º 2
0
 public ToText(Decimal number, CurrencyInfo currency, String englishPrefixText, String englishSuffixText, String arabicPrefixText, String arabicSuffixText)
 {
     InitializeClass(number, currency, englishPrefixText, englishSuffixText, arabicPrefixText, arabicSuffixText);
 }
Exemplo n.º 3
0
 public ToText(Decimal number, CurrencyInfo currency)
 {
     InitializeClass(number, currency, String.Empty, "only", "فقط", "لا غير");
 }