public void End() { if (active != null) { active.MakePolygon(_map); polygons.Add(active); active = null; } }
public void Upload(List <LinkedList <Point> > pointPolygons) { foreach (var poly in pointPolygons) { MyPolygon p = new MyPolygon(1); foreach (var point in poly) { var t = p.AddThumb(point, _map); _map.Children.Add(t); } p.MakePolygon(_map); polygons.Add(p); } }