Beispiel #1
0
        private void ReadFile()
        {
            List <string[]> toRead = ReaderWriter.readFile(fileName);

            foreach (string[] point in toRead)
            {
                NotifyDataAdded(point);

                //push the information to the queue
                data.Enqueue(point);
                if (timesPerSecond != 0)
                {
                    Thread.Sleep(1000 / timesPerSecond);
                }
                else
                {
                    break;
                }
            }
        }
Beispiel #2
0
 public void Save(string[] toSave)
 {
     ReaderWriter.WriteFile(fileName, toSave);
 }