public ToolBarBuilder(
ICommandService commandService,
[ImportMany] ToolBarDefinition[] toolBars,
[ImportMany] ToolBarItemGroupDefinition[] toolBarItemGroups,
[ImportMany] ToolBarItemDefinition[] toolBarItems,
[ImportMany] ExcludeToolBarDefinition[] excludeToolBars,
[ImportMany] ExcludeToolBarItemGroupDefinition[] excludeToolBarItemGroups,
[ImportMany] ExcludeToolBarItemDefinition[] excludeToolBarItems)
{
_commandService = commandService;
_toolBars = toolBars
.Where(x => !excludeToolBars.Select(y => y.ToolBarDefinitionToExclude).Contains(x))
.ToArray();
_toolBarItemGroups = toolBarItemGroups
.Where(x => !excludeToolBarItemGroups.Select(y => y.ToolBarItemGroupDefinitionToExclude).Contains(x))
.ToArray();
_toolBarItems = toolBarItems
.Where(x => !excludeToolBarItems.Select(y => y.ToolBarItemDefinitionToExclude).Contains(x))
.ToArray();
}