Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
        public void LoadData(String fileName)
        {
            CultureInfo provider = CultureInfo.InvariantCulture;
            ReadCSV csv = new ReadCSV(fileName, true, ',');
            while (csv.Next())
            {
                String dateString = csv.Get("date");
                DateTime date = DateTime.ParseExact(dateString, "d", provider);
                double amount = csv.GetDouble("volume");
                outputBox.Items.Insert(0, date);
                /*FinancialSample sample = new FinancialSample();
                sample.SetAmount(amount);
                sample.SetDate(date);
                this.samples.Add(sample);*/
            }
            csv.Close();
            //this.samples.Sort();
        }