Exemplo n.º 1
0
 public void OnValueLogEntryAdded(object sender, DataLogEntryAddedEventArgs args)
 {
     if (dataPoints.count > 0)
     {
         var previous       = dataPoints[dataPoints.count - 1].dateTime;
         var totalSeconds   = args.entry.dateTime.Subtract(previous).TotalSeconds.ToInt();
         var secondTimeSpan = PointTimeDifferenceToSeconds();
         if (totalSeconds >= secondTimeSpan)
         {
             dataPoints.Add(new LogEntry(args.entry));
         }
     }
     else
     {
         dataPoints.Add(new LogEntry(args.entry));
     }
 }
Exemplo n.º 2
0
 public void OnEventLogEntryAdded(object sender, DataLogEntryAddedEventArgs args)
 {
     eventPoints.Add(new LogEntry(args.entry));
 }