public override Shape Clone()
        {
            Shape result = new Ethernet(Type, Template);

            result.CopyFrom(this);
            return(result);
        }
Esempio n. 2
0
 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());
 }