public void AddAvailableShape(IShapePlugin shapePlugin) { addShapesSubMenu.SetMenuItem(shapePlugins.Count + 1, shapePlugin.GetName(), () => container.Add(shapePlugin.ReadShape())); shapePlugins.Add(shapePlugin); }