示例#1
0
 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);
 }
示例#2
0
 private void AddCustomControl2_Click(object sender, RoutedEventArgs e)
 {
     var customControl = new CustomControl();
     var time = GetMiddleAxisTime();
     CurveDisplay.TimeDoublePlottingSystem.AddCustomControl(time, 200, customControl);
     _plottingSystemCustomControls.Add(customControl);
 }