示例#1
0
        public object CreateShape(PaintSpace p)
        {
            Zigzag polygon = new Zigzag(p, pointList);

            pointList.Clear();
            return(polygon);
        }
示例#2
0
 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]));
 }