Exemplo n.º 1
0
        public object CreateShape(PaintSpace p)
        {
            Zigzag polygon = new Zigzag(p, pointList);

            pointList.Clear();
            return(polygon);
        }
Exemplo n.º 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]));
 }