public override Primitive Clone() { PointShape point = new PointShape(this.rect); point.FillColor = this.FillColor; point.LineWidth = this.LineWidth; return point; }
public PointShape(PointShape point) : base(point) { }
// ADD PRIMITIVES public void AddPoint(PointF location, Color color) { PointShape point = new PointShape(new Rectangle((int)location.X, (int)location.Y, 5, 5)); point.FillColor = MainForm.GetRandomColor(); if (Program.form.TabControl.SelectedTab.Equals(Program.form.TabPage3)) PrimitiveList3.Add(point); else PrimitiveList.Add(point); selection = point; }