private void OnNewHistoricalTrade(object sender, HistoricalTradeEventArgs e) { if (e.RequestId == this.request.RequestId) this.data.Add(e.Trade); }
private void provider_NewHistoricalTrade(object sender, HistoricalTradeEventArgs args) { DownloadViewItem downloadViewItem = (DownloadViewItem) null; if (!this.items.TryGetValue(((HistoricalDataEventArgs) args).RequestId, out downloadViewItem)) return; downloadViewItem.Instrument.Add(args.Trade); this.UpdateDownloadItem(downloadViewItem, (HistoricalDataEventArgs) args); }