/// <summary> /// Adds a new <see cref="ControlPoint"/> to the /// <see cref="ControlPointGroup"/>. /// </summary> /// <param name="point"></param> public void Add(PointF point) { ControlPoint controlPoint = new ControlPoint(); this.Graphics.Add(controlPoint); controlPoint.Location = point; controlPoint.Color = this.Color; controlPoint.LocationChanged += OnControlPointChanged; }
private void OnControlPointChanged(object sender, EventArgs e) { ControlPoint controlPoint = (ControlPoint)sender; EventsHelper.Fire(_controlPointChangedEvent, this, new ListEventArgs <PointF>(controlPoint.Location, this.Graphics.IndexOf(controlPoint))); }