private void method0(DependencyPropertyChangedEventArgs eventArgs)
 {
     _definingGeometry = CanonicalSplineHelper.smethod0(Points, Tension, Tensions, IsClosed, IsFilled, Tolerance);
     base.InvalidateMeasure();
     method1(eventArgs);
 }
        internal static PathGeometry smethod_0(PointCollection pointCollection_0, double double_0, DoubleCollection doubleCollection_0, bool bool_0, bool bool_1, double double_1)
        {
            PathGeometry result;

            if (pointCollection_0 == null || pointCollection_0.Count < 1)
            {
                result = null;
            }
            else
            {
                PolyLineSegment polyLineSegment = new PolyLineSegment();
                PathFigure      pathFigure      = new PathFigure();
                pathFigure.IsClosed   = bool_0;
                pathFigure.IsFilled   = bool_1;
                pathFigure.StartPoint = pointCollection_0[0];
                pathFigure.Segments.Add(polyLineSegment);
                PathGeometry pathGeometry = new PathGeometry();
                pathGeometry.Figures.Add(pathFigure);
                if (pointCollection_0.Count < 2)
                {
                    result = pathGeometry;
                }
                else
                {
                    if (pointCollection_0.Count == 2)
                    {
                        if (!bool_0)
                        {
                            CanonicalSplineHelper.smethod_1(polyLineSegment.Points, pointCollection_0[0], pointCollection_0[0], pointCollection_0[1], pointCollection_0[1], double_0, double_0, double_1);
                        }
                        else
                        {
                            CanonicalSplineHelper.smethod_1(polyLineSegment.Points, pointCollection_0[1], pointCollection_0[0], pointCollection_0[1], pointCollection_0[0], double_0, double_0, double_1);
                            CanonicalSplineHelper.smethod_1(polyLineSegment.Points, pointCollection_0[0], pointCollection_0[1], pointCollection_0[0], pointCollection_0[1], double_0, double_0, double_1);
                        }
                    }
                    else
                    {
                        bool flag = doubleCollection_0 != null && doubleCollection_0.Count > 0;
                        for (int i = 0; i < pointCollection_0.Count; i++)
                        {
                            double double_2 = flag ? doubleCollection_0[i % doubleCollection_0.Count] : double_0;
                            double double_3 = flag ? doubleCollection_0[(i + 1) % doubleCollection_0.Count] : double_0;
                            if (i == 0)
                            {
                                CanonicalSplineHelper.smethod_1(polyLineSegment.Points, bool_0 ? pointCollection_0[pointCollection_0.Count - 1] : pointCollection_0[0], pointCollection_0[0], pointCollection_0[1], pointCollection_0[2], double_2, double_3, double_1);
                            }
                            else if (i == pointCollection_0.Count - 2)
                            {
                                CanonicalSplineHelper.smethod_1(polyLineSegment.Points, pointCollection_0[i - 1], pointCollection_0[i], pointCollection_0[i + 1], bool_0 ? pointCollection_0[0] : pointCollection_0[i + 1], double_2, double_3, double_1);
                            }
                            else if (i == pointCollection_0.Count - 1)
                            {
                                if (bool_0)
                                {
                                    CanonicalSplineHelper.smethod_1(polyLineSegment.Points, pointCollection_0[i - 1], pointCollection_0[i], pointCollection_0[0], pointCollection_0[1], double_2, double_3, double_1);
                                }
                            }
                            else
                            {
                                CanonicalSplineHelper.smethod_1(polyLineSegment.Points, pointCollection_0[i - 1], pointCollection_0[i], pointCollection_0[i + 1], pointCollection_0[i + 2], double_2, double_3, double_1);
                            }
                        }
                    }
                    result = pathGeometry;
                }
            }
            return(result);
        }
 private void method_0(DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs_0)
 {
     this.pathGeometry_0 = CanonicalSplineHelper.smethod_0(this.Points, this.Tension, this.Tensions, this.IsClosed, this.IsFilled, this.Tolerance);
     base.InvalidateMeasure();
     this.method_1(dependencyPropertyChangedEventArgs_0);
 }