public void Load(string Filename, DrawingTypeDialog.DrawingConfigStruct DrawingConfig) { PageWidth = 11.0f; PageHeight = 11.0f; DrillNodes = new List <DrillNode>(); ReadNodes(Filename); RemoveZero(); RemoveNonEllipses(); RemoveDuplicates(); if (DrawingConfig.Inverted) { FlipXShapes(); } if (DrawingConfig.vdx_vertical_flip) { FlipYShapes(); } for (var i = 0; i < Shapes.Count; i++) { DrillNodes.Add(new DrillNode(new PointF(Shapes[i].x, Shapes[i].y), i)); } }
public void Load(string Filename, DrawingTypeDialog.DrawingConfigStruct DrawingConfig) { readCircles(Filename); removeZeros(); removeDuplicates(); if (DrawingConfig.Inverted) { flipNodes(); } }