Example #1
0
        private async void getCurrencyRateAsync()
        {
            CurrencyFetcher currencyFetcher = new CurrencyFetcher();
            string          res             = await currencyFetcher.GetExchangeRate(Properties.Settings.Default.currency_api, currency.Text, "USD");

            if (res == "error")
            {
                toCurr.Text = "Undefined";
            }
            else
            {
                toCurr.Text = res + " USD";
            }
        }
Example #2
0
 public CurrencyController(CurrencyFetcher currencyFetcher)
 {
     _currencyFetcher = currencyFetcher;
 }