private void AsyncDownload_Completed(object sender, YahooManaged.Base.DownloadCompletedEventArgs <ExchangeRateResult> e) { AsyncDownloadArgs dlArgs = (AsyncDownloadArgs)e.UserArgs; if (e.Response.Connection.State == YahooManaged.Base.ConnectionState.Success & dlArgs.Counter == mDonwloadCounter) { mExchangeItems = e.Response.Result.Items; } if (AsyncUpdateCompleted != null) { AsyncUpdateCompleted(this, new ExchangeRateCalculatorCompletedEventArgs(dlArgs.UserArgs, e.Response.Connection.State == YahooManaged.Base.ConnectionState.Success)); } }
private void DownloadHistQuotesAsync_Completed(YahooManaged.Base.DownloadClient <HistQuotesResult> sender, YahooManaged.Base.DownloadCompletedEventArgs <HistQuotesResult> e) { AsyncDownloadArgs dlArgs = (AsyncDownloadArgs)e.UserArgs; if (AsyncRateDownloadCompleted != null) { AsyncRateDownloadCompleted(this, new ExchangeRateDownloadCompletedEventArgs(dlArgs.UserArgs, this.ToResponse(e.Response, dlArgs.Currencies))); } }