public IViewContent[] CreateSecondaryViewContent(IViewContent viewContent) { if (viewContent.SecondaryViewContents.Any(c => c is FormsDesignerViewContent)) { return new IViewContent[0]; } IDesignerLoaderProvider loader = new BooDesignerLoaderProvider(); IDesignerGenerator generator = new BooDesignerGenerator(); return new IViewContent[] { new FormsDesignerViewContent(viewContent, loader, generator) }; }
public IViewContent[] CreateSecondaryViewContent(IViewContent viewContent) { if (viewContent.SecondaryViewContents.Any(c => c is FormsDesignerViewContent)) { return(new IViewContent[0]); } IDesignerLoaderProvider loader = new BooDesignerLoaderProvider(); IDesignerGenerator generator = new BooDesignerGenerator(); return(new IViewContent[] { new FormsDesignerViewContent(viewContent, loader, generator) }); }