public object CreateShape(PaintSpace p) { Zigzag polygon = new Zigzag(p, pointList); pointList.Clear(); return(polygon); }
public object CreatePartShape(PaintSpace p) { if (pointList.Count > 2) { Zigzag polygon = new Zigzag(p, pointList); return(polygon); } return(new Line(p, pointList[0], pointList[1])); }