public bool LoadShapeType(string filePath, ref string shapeTypeLoaded) { IShapeCreator newShapeTypeCreator = GetInstanceOfTypeFromAssembly <IShapeCreator>(filePath); if (null != newShapeTypeCreator) { Settings.RegisterShapeType(newShapeTypeCreator); shapeTypeLoaded = newShapeTypeCreator.ShapeTypeName(); return(true); } else { return(false); } }
public void RegisterShapeType(IShapeCreator creator, IShapeRenderer renderer) { ShapeTypesInfoMap[creator.ShapeTypeName()] = new ShapeTypeInfo(creator, renderer); }
public void RegisterShapeType(IShapeCreator creator) { ShapeTypesInfoMap[creator.ShapeTypeName()] = new ShapeTypeInfo(creator, null); }