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()); }
private void ResetData(bool isLiveHeartbeat) { if (isLiveHeartbeat) { HeartbeatCollection[0].Values.Clear(); HeartbeatDates.Clear(); } else { TemperatureCollection[0].Values.Clear(); TemperatureDates.Clear(); } }