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); }
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); } } }