public static global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder GetLink(global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplay source, global::Microsoft.VisualStudio.Modeling.Diagrams.Diagram target) { global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder>(source, global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder.DiagramDisplayDomainRoleId); foreach (global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder link in links) { if (target.Equals(link.Diagram)) { return(link); } } return(null); }
public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder> GetLinks(global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplay source, global::Microsoft.VisualStudio.Modeling.Diagrams.Diagram target) { global::System.Collections.Generic.List <global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder> outLinks = new global::System.Collections.Generic.List <global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder>(); global::System.Collections.Generic.IList <global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder>(source, global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder.DiagramDisplayDomainRoleId); foreach (global::ORMSolutions.ORMArchitect.Framework.Shell.DiagramDisplayHasDiagramOrder link in links) { if (target.Equals(link.Diagram)) { outLinks.Add(link); } } return(outLinks.AsReadOnly()); }