Пример #1
0
 public static global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem GetLinkToMenu(global::ce.GEB_NGN_PCR_Practica1.MenuItem menuItemInstance)
 {
     global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem>(menuItemInstance, global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem.MenuItemDomainRoleId);
     global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of MenuItem not obeyed.");
     if (links.Count == 0)
     {
         return(null);
     }
     else
     {
         return(links[0]);
     }
 }
Пример #2
0
 public static global::ce.GEB_NGN_PCR_Practica1.Prototools GetParentForMenuItem(global::ce.GEB_NGN_PCR_Practica1.MenuItem root)
 {
     // Segments 0 and 1
     global::ce.GEB_NGN_PCR_Practica1.Menu root2 = root.Menu;
     if (root2 == null)
     {
         return(null);
     }
     // Segments 2 and 3
     global::ce.GEB_NGN_PCR_Practica1.Ventana root4 = root2.Ventana;
     if (root4 == null)
     {
         return(null);
     }
     // Segments 4 and 5
     global::ce.GEB_NGN_PCR_Practica1.Prototools result = root4.Prototools;
     if (result == null)
     {
         return(null);
     }
     return(result);
 }
Пример #3
0
 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);
 }
Пример #4
0
 public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem> GetLinks(global::ce.GEB_NGN_PCR_Practica1.Menu source, global::ce.GEB_NGN_PCR_Practica1.MenuItem target)
 {
     global::System.Collections.Generic.List <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem>  outLinks = new global::System.Collections.Generic.List <global::ce.GEB_NGN_PCR_Practica1.MenuHasMenuItem>();
     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))
         {
             outLinks.Add(link);
         }
     }
     return(outLinks.AsReadOnly());
 }