void AddData() { dc.DataSeriesList.Clear(); var tfr = new TextFileReader(); var ds = new DataSeries(); // Add GE stock data from a text data file: ds = new DataSeries(); ds.DataString = tfr.ReadTextFile("GE.txt"); ds.LineStyle.LineColor = Color.DarkBlue; dc.Add(ds); }
private void AddData() { dc.DataSeriesList.Clear(); TextFileReader tfr = new TextFileReader(); DataSeries ds = new DataSeries(); // Add GE stock data from a text data file: ds = new DataSeries(); ds.DataString = tfr.ReadTextFile("GE.txt"); ds.LineStyle.LineColor = Color.DarkBlue; dc.Add(ds); }