//Notifies when a simple curve has new data added protected virtual void _activeSimpleCurve_NewDataAdded(object sender, ArrayDataAddedEventArgs e) { int startIndex = e.StartIndex; int count = e.Count; double[] newData = new double[count]; (sender as SimpleCurve).YAxisValues.CopyTo(newData, startIndex); }
public void _activeCurve_NewDataAdded(object sender, ArrayDataAddedEventArgs e) { int startIndex = e.StartIndex; int count = e.Count; double[] newData = new double[count]; (sender as Curve).GetYValues().CopyTo(newData, startIndex); }
private void HW_NewDataAdded(object sender, ArrayDataAddedEventArgs e) { var curve = sender as Curve; int curveIdx = resultCurves.IndexOf(curve); double[] xVals = curve.GetXValues(); double[] yVals = curve.GetYValues(); experimentData.data[curveIdx][0] = xVals; experimentData.data[curveIdx][1] = yVals; NotifyExperimentDataUpdatedNow(new ExperimentDataEventArgs(experimentData, true)); }
/// <summary> /// Handles the NewDataAdded event of the Curve control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ArrayDataAddedEventArgs"/> instance containing the event data.</param> /// <exception cref="System.NotImplementedException"></exception> private void Curve_NewDataAdded(object sender, ArrayDataAddedEventArgs e) { OnNewDataAdded(e); }