Esempio n. 1
0
 private void ExportContentUserGroups(System.ComponentModel.Composition.Hosting.CompositionContainer container)
 {
     GetContentUserGroups();
     foreach (Box.Composition.IUserGroup g in groupsCache)
     {
         container.ComposeExportedValue <Box.Composition.IUserGroup>(g);
     }
 }
Esempio n. 2
0
 private void ExportContentLinks(System.ComponentModel.Composition.Hosting.CompositionContainer container)
 {
     GetContentKinds();
     foreach (ContentKind k in kindsCache)
     {
         Menus.ContentLink link = new Menus.ContentLink(k.FriendlyPluralName, k.CaptureController + "/?kind=" + k.Kind, k.RequiredRolesToEdit);
         container.ComposeExportedValue <Box.Composition.IMenuActionLink>(link);
     }
 }