using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XKRS.UI { public class Polygon { // public ShapesContent[]? shapes { get; set; } public Color FillColor { get; set; } public Color LineColor { get; set; } private List Points = new List(); public Polygon() { } public Polygon(Color fillColor, Color lineColor, List points) { FillColor = fillColor; LineColor = lineColor; Points = points; } public void SetPoints(List pointsList) { this.Points = pointsList; } public void AddPoint(PointF p) { Points.Add(p); } public void RemovePoint(int index) { Points.RemoveAt(index); } public List GetPoints() { return Points; } } }