/// <summary> /// Updates exchange informations /// </summary> /// <param name="baseCurrency">The currency all other currencies are depending</param> /// <param name="currencies">The dependent currencies</param> /// <remarks></remarks> public void Update(CurrencyInfo baseCurrency, IEnumerable <CurrencyInfo> currencies) { mDownloader.CancelAsyncAll(); mDonwloadCounter += 1; mExchangeItems = new ExchangeRateData[] { }; ExchangeRateResponse resp = mDownloader.Download(this.GetCurrencyList(baseCurrency, currencies)); if (resp.Connection.State == Base.ConnectionState.Success) { mExchangeItems = resp.Result.Items; } }
public ExchangeRateDownloadCompletedEventArgs(object userArgs, ExchangeRateResponse response) : base(userArgs, response, null) { }