static void PickPoints(int numberToPick, ref PointList pointList, ref ViewBase view) { if (Repeat) { view = lastView; foreach (Point point in lastPoints) { pointList.Add(new Point(point)); } return; } var picker = new DrawingHandler().GetPicker(); int ii = numberToPick; lastPoints.Clear(); while (--ii != -1) { Point point; picker.PickPoint("Pick point", out point, out view); pointList.Add(point); lastPoints.Add(new Point(point)); } lastView = view; }