示例#1
0
        //public List<EAElement> elements = new List<EAElement>();

        public EADiagram()
        {
            EACollection diaObjs = new EACollection("DiagramObject");

            diaObjs.setObjectType(EA.ObjectType.otDiagramObject);
            DiagramObjects = diaObjs;

            DiagramID    = EARepository.NextAvailableId();
            DiagramLinks = new EACollection("DiagramLink");
        }
        public EA.Collection GetElementSet(string IDList, int Unused)
        {
            EACollection col = new EACollection("object");

            string[] elementIds = IDList.Split(',');
            foreach (string el in elementIds)
            {
                int eId = Int32.Parse(el);
                if (!col.collection.ContainsKey(el))
                {
                    col.collection.Add(el, elements[eId]);
                }
            }
            return(col);
        }
示例#3
0
        public EAPackage(string name)
        {
            Name      = name;
            PackageID = EARepository.NextAvailableId();
            EARepository.Repository.packages.Add(PackageID, this);

            EACollection p = new EACollection("Packages");

            p.setParent(PackageID);
            Packages = p;

            EACollection d = new EACollection("Diagram");

            d.setParent(PackageID);
            Diagrams = d;

            EACollection e = new EACollection("Element");

            e.setParent(PackageID);
            Elements = e;
        }
示例#4
0
        //public List<EAElement> elements = new List<EAElement>();

        public EADiagram()
        {
            DiagramObjects = new EACollection("DiagramObject");
            DiagramID      = EARepository.NextAvailableId();
            DiagramLinks   = new EACollection("DiagramLink");
        }