public static global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem GetLink(global::ce.GEB_NGN_PCR_Practica1.Menu source, global::ce.GEB_NGN_PCR_Practica1.MenuItem target) { global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem>(source, global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem.MenuDomainRoleId); foreach (global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem link in links) { if (target.Equals(link.MenuItem)) { 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::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::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu GetLinkToVentana(global::ce.GEB_NGN_PCR_Practica1.Menu menuInstance) { global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu>(menuInstance, global::ce.GEB_NGN_PCR_Practica1.VentanaHasMenu.MenuDomainRoleId); global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of Menu not obeyed."); if (links.Count == 0) { return(null); } else { return(links[0]); } }
public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem> GetLinksToMenuItem(global::ce.GEB_NGN_PCR_Practica1.Menu menuInstance) { return(DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem>(menuInstance, global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem.MenuDomainRoleId)); }