using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using System.Collections; namespace SVGFormsApplication { public partial class DrawingCanvas : UserControl { private List<MyShape> shapes; public DrawingCanvas() { InitializeComponent(); shapes = new List<MyShape>(); } protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); } public List<MyShape> GetSetShapes // my guess is this part is the culprit { get { return shapes; } set { shapes = value; } } private void DrawShapes(PaintEventArgs e) { foreach (MyShape shape in shapes) { shape.DrawShape(e); } } } }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public List<MyShape> GetSetShapes { get { return shapes; } set { shapes = value; } }
MyShape
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)