private void btnReadTrades_Click(object sender, EventArgs e) { IEnumerable <string> lines = tradeProcessor.ReadTrades(); foreach (string line in lines) { lbTradeLines.Items.Add(line); } txtStoreStatus.Text = "Trades NOT stored in database yet."; }
private void btnReadTrades_Click(object sender, EventArgs e) { //String tradeUrl = "http://faculty.css.edu/tgibbons/trades100.txt"; string tradeUrl = txtTradeUrl.Text.ToString(); ITradeDataProvider tradeDataProvider = new UrlTradeDataProvider(tradeUrl); IEnumerable <string> lines = tradeProcessor.ReadTrades(tradeDataProvider); foreach (string line in lines) { lbTradeLines.Items.Add(line); } txtStoreStatus.Text = "Trades NOT stored in database yet."; }