private void AddCustomControl_Click(object sender, RoutedEventArgs e) { var curve = CurveDisplay.Curves.OfType<TimeDoubleCurve>().LastOrDefault(); if (curve == null) return; var customControl = new CustomControl(); var time = GetMiddleAxisTime(); curve.AddCustomControl(time, customControl); _curveCustomControls.Add(customControl, curve); }
private void AddCustomControl2_Click(object sender, RoutedEventArgs e) { var customControl = new CustomControl(); var time = GetMiddleAxisTime(); CurveDisplay.TimeDoublePlottingSystem.AddCustomControl(time, 200, customControl); _plottingSystemCustomControls.Add(customControl); }