Пример #1
0
 public void PushDataTemp(double requestData)
 {
     if (TemperatureCollection[0].Values.Count > 10)
     {
         TemperatureCollection[0].Values.Clear();
         TemperatureDates.Clear();
     }
     TemperatureCollection[0].Values.Add(requestData);
     TemperatureDates.Add(DateTime.Now.ToString());
 }
Пример #2
0
 private void ResetData(bool isLiveHeartbeat)
 {
     if (isLiveHeartbeat)
     {
         HeartbeatCollection[0].Values.Clear();
         HeartbeatDates.Clear();
     }
     else
     {
         TemperatureCollection[0].Values.Clear();
         TemperatureDates.Clear();
     }
 }