public void ParseArcOrLine() { _contour = new FigureContour { Orientation = !_partProfile.Contours.Any() ? "Positive" : "Negative" }; _lastPoint = null; while (_linesLeftToParse > 0) { _point = ParsePoint(GetValue(StreamReader.ReadLine())); _linesLeftToParse--; if (_point.B > 0 || _point.B < 0) { ParseArc(); } else { ParseLine(); } _lastPoint = _point; } _contour.CloseContour(); _partProfile.Contours.Add(_contour); }