public static global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu GetLink(global::ce.GEB_NGN_PCR_Practica1.Ventana source, global::ce.GEB_NGN_PCR_Practica1.Menu target) { global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu>(source, global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu.VentanaDomainRoleId); foreach (global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu link in links) { if (target.Equals(link.Menu)) { return(link); } } return(null); }
public static global::ce.GEB_NGN_PCR_Practica1.Prototools GetParentForMenu(global::ce.GEB_NGN_PCR_Practica1.Menu root) { // Segments 0 and 1 global::ce.GEB_NGN_PCR_Practica1.Ventana root2 = root.Ventana; if (root2 == null) { return(null); } // Segments 2 and 3 global::ce.GEB_NGN_PCR_Practica1.Prototools result = root2.Prototools; if (result == null) { return(null); } return(result); }
public static global::ce.GEB_NGN_PCR_Practica1.Prototools GetParentForVentana(global::ce.GEB_NGN_PCR_Practica1.Ventana root) { // Segments 0 and 1 global::ce.GEB_NGN_PCR_Practica1.Prototools result = root.Prototools; if (result == null) { return(null); } return(result); }
public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu> GetLinks(global::ce.GEB_NGN_PCR_Practica1.Ventana source, global::ce.GEB_NGN_PCR_Practica1.Menu target) { global::System.Collections.Generic.List <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu> outLinks = new global::System.Collections.Generic.List <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu>(); global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu>(source, global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu.VentanaDomainRoleId); foreach (global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu link in links) { if (target.Equals(link.Menu)) { outLinks.Add(link); } } return(outLinks.AsReadOnly()); }
public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu> GetLinksToMenu(global::ce.GEB_NGN_PCR_Practica1.Ventana ventanaInstance) { return(DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu>(ventanaInstance, global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu.VentanaDomainRoleId)); }
public static global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana GetLink(global::ce.GEB_NGN_PCR_Practica1.Prototools source, global::ce.GEB_NGN_PCR_Practica1.Ventana target) { global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana>(source, global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana.PrototoolsDomainRoleId); foreach (global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana link in links) { if (target.Equals(link.Ventana)) { return(link); } } return(null); }
public static global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana GetLinkToPrototools(global::ce.GEB_NGN_PCR_Practica1.Ventana ventanaInstance) { global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana>(ventanaInstance, global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana.VentanaDomainRoleId); global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of Ventana not obeyed."); if (links.Count == 0) { return(null); } else { return(links[0]); } }