private void WriteLine(DataWriter dataWriter, BrightnessDataPoint dataPoint)
 {
     dataWriter.WriteString(dataPoint.Time.ToString("MM/dd/yyyy hh:mm:ss"));
     dataWriter.WriteString(",");
     dataWriter.WriteString(dataPoint.Brightness.ToString());
     dataWriter.WriteString("\r\n");
 }
示例#2
0
        public void Add(BrightnessDataPoint dataPoint)
        {
            Data.Add(dataPoint);

            if (Data.Count > length)
            {
                Data.RemoveAt(0);
            }
        }