private void OnDeleteMenuItemClick(object sender, EventArgs e) { Primitives.Remove(SelectedPrimitive); this.simplePrimitives.Remove(SelectedPrimitive); this.chart.ContentUpdated = true; this.chart.Invalidate(); }