public YahooData getSeries(bool readByRange) { YahooData yd = new YahooData(); string stock, startDate, endDate; if (readByRange) { foreach (DataTable dt in dsTransaction.Tables) { stock = dt.TableName; startDate = dt.Rows[0][0].ToString(); endDate = dt.Rows[dt.Rows.Count - 1][0].ToString(); yd.addSeries(stock, startDate, endDate); } } else { foreach (DataTable dt in dsTransaction.Tables) { stock = dt.TableName; foreach (DataRow dr in dt.Rows) { startDate = dr[0].ToString(); endDate = dr[0].ToString(); yd.addSeries(stock, startDate, endDate); } } } return(yd); }
public void setSeries(string index, string startDate, string endDate) { seriesData.addSeries(index, startDate, endDate); }