internal bool EA_OnPostNewAttribute(EA.Repository Repository, EA.EventProperties Info) { if (!initialConnectionAvailable) { return(true); } EA.Attribute attribute = Repository.GetAttributeByID(int.Parse((string)Info.Get(0).Value)); CreateElementChange change = new CreateElementChange(); change.elementType = ElementType.PACKAGE; change.internalID = attribute.AttributeGUID; change.name = attribute.Name; return(sendObject(change)); //return sendEvent(Repository, Info); }
internal bool EA_OnPostNewElement(EA.Repository Repository, EA.EventProperties Info) { if (!initialConnectionAvailable) { return(true); } EA.Element element = Repository.GetElementByID(int.Parse((string)Info.Get(0).Value)); CreateElementChange change = new CreateElementChange(); change.elementType = ElementType.ELEMENT; change.internalID = element.ElementGUID; change.name = element.Name; return(sendObject(change)); //return sendEvent(Repository, Info); }
internal bool EA_OnPostNewMethod(EA.Repository Repository, EA.EventProperties Info) { if (!initialConnectionAvailable) { return(true); } EA.Method method = Repository.GetMethodByID(int.Parse((string)Info.Get(0).Value)); CreateElementChange change = new CreateElementChange(); change.elementType = ElementType.METHOD; change.internalID = method.MethodGUID; change.name = method.Name; return(sendObject(change)); //return sendEvent(Repository, Info); }
internal bool EA_OnPostNewConnector(EA.Repository Repository, EA.EventProperties Info) { if (!initialConnectionAvailable) { return(true); } EA.Connector connector = Repository.GetConnectorByID(int.Parse((string)Info.Get(0).Value)); CreateElementChange change = new CreateElementChange(); change.elementType = ElementType.CONNECTOR; change.internalID = connector.ConnectorGUID; change.name = connector.Name; return(sendObject(change)); //return sendEvent(Repository, Info); }