Esempio n. 1
0
        private void AddPathDef(Tool.Point[] path, Pen pen = null)
        {
            PathDef def = new PathDef(pen);

            foreach (Tool.Point pt in path)
            {
                def.points.Add(pt);
            }
            paths.Add(def);
        }
Esempio n. 2
0
        public void RemoveLastPoint()
        {
            if (paths.Count > 0)
            {
                PathDef def = paths.Last();

                if (def.points.Count > 0)
                {
                    def.points.Remove(def.points.Last());
                }

                if (def.points.Count == 0)
                {
                    paths.Remove(def);
                }
            }
        }