Beispiel #1
0
 private static void CurvePointsPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
 {
     try
     {
         CurveControlParabolic gainControl = source as CurveControlParabolic;
         gainControl.updateCurve();
     }
     catch
     {
         //(source as ViewChamberControl).ScanStart = 0;
     }
 }
Beispiel #2
0
        private static void Cp1Changed(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            CurveControlParabolic control = null;

            try
            {
                control = source as CurveControlParabolic;
                control.updatePoint(control.cp1Thumb, control.Cp1.X, control.Cp1.Y);
            }
            catch
            {
                if (control != null)
                {
                    control.Cp1 = new Point(0, 0);
                }
            }
        }