Automated dotnet-format update
This commit is contained in:
1 parent
ad4c2f68aa
commit
2af18c2d38
403 files changed
+1569
-1567
No files matched your search
@@ -243,7 +243,7 @@ namespace HandyControl.Expression.Drawing
|
||||
|
||||
public static PathSegmentImplementation Create(ArcSegment source)
|
||||
{
|
||||
if (source != null) return new ArcSegmentImplementation {_segment = source};
|
||||
if (source != null) return new ArcSegmentImplementation { _segment = source };
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -454,13 +454,13 @@ namespace HandyControl.Expression.Drawing
|
||||
|
||||
public static PathSegmentImplementation Create(BezierSegment source)
|
||||
{
|
||||
if (source != null) return new BezierSegmentImplementation {_segment = source};
|
||||
if (source != null) return new BezierSegmentImplementation { _segment = source };
|
||||
return null;
|
||||
}
|
||||
|
||||
public override void Flatten(IList<Point> points, double tolerance)
|
||||
{
|
||||
Point[] controlPoints = {Start, _segment.Point1, _segment.Point2, _segment.Point3};
|
||||
Point[] controlPoints = { Start, _segment.Point1, _segment.Point2, _segment.Point3 };
|
||||
var resultPolyline = new List<Point>();
|
||||
BezierCurveFlattener.FlattenCubic(controlPoints, tolerance, resultPolyline, true);
|
||||
points.AddRange(resultPolyline);
|
||||
@@ -493,7 +493,7 @@ namespace HandyControl.Expression.Drawing
|
||||
|
||||
public static PathSegmentImplementation Create(LineSegment source)
|
||||
{
|
||||
if (source != null) return new LineSegmentImplementation {_segment = source};
|
||||
if (source != null) return new LineSegmentImplementation { _segment = source };
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -538,7 +538,7 @@ namespace HandyControl.Expression.Drawing
|
||||
PolyQuadraticBezierSegmentImplementation.Create(segment as PolyQuadraticBezierSegment)
|
||||
) == null)
|
||||
throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture,
|
||||
ExceptionStringTable.TypeNotSupported, new object[] {segment.GetType().FullName}));
|
||||
ExceptionStringTable.TypeNotSupported, new object[] { segment.GetType().FullName }));
|
||||
return implementation;
|
||||
}
|
||||
|
||||
@@ -569,7 +569,7 @@ namespace HandyControl.Expression.Drawing
|
||||
|
||||
public static PathSegmentImplementation Create(PolyBezierSegment source)
|
||||
{
|
||||
if (source != null) return new PolyBezierSegmentImplementation {_segment = source};
|
||||
if (source != null) return new PolyBezierSegmentImplementation { _segment = source };
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -579,7 +579,7 @@ namespace HandyControl.Expression.Drawing
|
||||
var num = _segment.Points.Count / 3 * 3;
|
||||
for (var i = 0; i < num; i += 3)
|
||||
{
|
||||
Point[] controlPoints = {start, _segment.Points[i], _segment.Points[i + 1], _segment.Points[i + 2]};
|
||||
Point[] controlPoints = { start, _segment.Points[i], _segment.Points[i + 1], _segment.Points[i + 2] };
|
||||
var resultPolyline = new List<Point>();
|
||||
BezierCurveFlattener.FlattenCubic(controlPoints, tolerance, resultPolyline, true);
|
||||
points.AddRange(resultPolyline);
|
||||
@@ -626,7 +626,7 @@ namespace HandyControl.Expression.Drawing
|
||||
|
||||
public static PathSegmentImplementation Create(PolyLineSegment source)
|
||||
{
|
||||
if (source != null) return new PolyLineSegmentImplementation {_segment = source};
|
||||
if (source != null) return new PolyLineSegmentImplementation { _segment = source };
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -670,7 +670,7 @@ namespace HandyControl.Expression.Drawing
|
||||
|
||||
public static PathSegmentImplementation Create(PolyQuadraticBezierSegment source)
|
||||
{
|
||||
if (source != null) return new PolyQuadraticBezierSegmentImplementation {_segment = source};
|
||||
if (source != null) return new PolyQuadraticBezierSegmentImplementation { _segment = source };
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -680,7 +680,7 @@ namespace HandyControl.Expression.Drawing
|
||||
var num = _segment.Points.Count / 2 * 2;
|
||||
for (var i = 0; i < num; i += 2)
|
||||
{
|
||||
Point[] controlPoints = {start, _segment.Points[i], _segment.Points[i + 1]};
|
||||
Point[] controlPoints = { start, _segment.Points[i], _segment.Points[i + 1] };
|
||||
var resultPolyline = new List<Point>();
|
||||
BezierCurveFlattener.FlattenQuadratic(controlPoints, tolerance, resultPolyline, true);
|
||||
points.AddRange(resultPolyline);
|
||||
@@ -728,13 +728,13 @@ namespace HandyControl.Expression.Drawing
|
||||
|
||||
public static PathSegmentImplementation Create(QuadraticBezierSegment source)
|
||||
{
|
||||
if (source != null) return new QuadraticBezierSegmentImplementation {_segment = source};
|
||||
if (source != null) return new QuadraticBezierSegmentImplementation { _segment = source };
|
||||
return null;
|
||||
}
|
||||
|
||||
public override void Flatten(IList<Point> points, double tolerance)
|
||||
{
|
||||
Point[] controlPoints = {Start, _segment.Point1, _segment.Point2};
|
||||
Point[] controlPoints = { Start, _segment.Point1, _segment.Point2 };
|
||||
var resultPolyline = new List<Point>();
|
||||
BezierCurveFlattener.FlattenQuadratic(controlPoints, tolerance, resultPolyline, true);
|
||||
points.AddRange(resultPolyline);
|
||||
@@ -752,4 +752,4 @@ namespace HandyControl.Expression.Drawing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user