public void RegisterShapeTypeRenderer(IShapeRenderer renderer) { ShapeTypesInfoMap[renderer.RenderingShapeTypeName()].Renderers.Add(renderer.Name(), renderer); if (null == ShapeTypesInfoMap[renderer.RenderingShapeTypeName()].Renderer) { ShapeTypesInfoMap[renderer.RenderingShapeTypeName()].Renderer = renderer; } }