private void Tick(object sender, System.EventArgs e) { var data = new DataSet(); data.Timestamp = DateTime.Now; var dp = new DataPoint(); dp.Type = DataPoint.DataPointType.Text; dp.Text = "Debug text"; dp.Label = "A"; data.DataPoints.Add(dp); dp = new DataPoint(); dp.Type = DataPoint.DataPointType.GenericSensorValue; dp.Value = Math.Cos(sw.ElapsedMilliseconds / 1000); dp.Label = ""; data.DataPoints.Add(dp); var args = new DataAvailableEventArgs(data); DataAvailable(this, args); }
private void DataAvailable(object sender, DataAvailableEventArgs e) { tsslStatus.Text = "Got data " + e.Data.Timestamp; }