public override Shape Clone() { Shape result = new Optic(Type, Template); result.CopyFrom(this); return(result); }
public static void Initialize(IRegistrar registrar) { registrar.RegisterLibrary(libraryName, repositoryVersion); registrar.RegisterShapeType(Bracket.GetShapeType()); registrar.RegisterShapeType(Coax.GetShapeType()); registrar.RegisterShapeType(Ethernet.GetShapeType()); registrar.RegisterShapeType(Optic.GetShapeType()); registrar.RegisterShapeType(Power.GetShapeType()); registrar.RegisterShapeType(Undefined.GetShapeType()); registrar.RegisterShapeType(Wire.GetShapeType()); }