Example #1
0
        private void SimulateData_Tick(object sender, EventArgs e)
        {
            var now = DateTime.Now;
            AnalogyPlottingPointData d1 = new AnalogyPlottingPointData("series1", GenerateValue(counter), now);

            OnNewPointData?.Invoke(this, d1);
            AnalogyPlottingPointData d2 = new AnalogyPlottingPointData("series2", GenerateValue(counter + 50), now);

            OnNewPointData?.Invoke(this, d2);
            counter++;
        }
 public void AddDataPoint(AnalogyPlottingPointData data)
 {
     try
     {
         sync.EnterWriteLock();
         rawData.Add(data);
     }
     finally
     {
         sync.ExitWriteLock();
     }
 }
Example #3
0
 private void Plotter_OnNewPointData(object sender, AnalogyPlottingPointData e)
 {
     Manager.AddPoint(e);
 }