示例#1
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);
     }
 }
示例#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);
     }
 }