/// <summary> /// Initializes a new instance of the <see cref="ToolBarManager"/> class. /// </summary> public ToolBarManager() { _coerceVisibilityAction = CoerceVisibility; Nodes = new MergeableNodeCollection <ICommandItem>(); CommandItems = new List <ICommandItem>(); ToolBars = new ToolBarViewModelCollection(); }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="ToolBarManager"/> class. /// </summary> public ToolBarManager() { _coerceVisibilityAction = CoerceVisibility; Nodes = new MergeableNodeCollection<ICommandItem>(); CommandItems = new List<ICommandItem>(); ToolBars = new ToolBarViewModelCollection(); }
private static void OutputToolBarNodes(IOutputService outputService, ToolBarViewModelCollection toolBars, int level = 0) { if (toolBars == null || toolBars.Count == 0) { return; } var indent = Indent(level); foreach (var toolBar in toolBars) { outputService.WriteLine(Invariant($"{indent}\"{toolBar.CommandGroup.Name}\""), NodesView); OutputToolBarNodes(outputService, toolBar.Items, level + 1); } }
private static void OutputToolBarNodes(IOutputService outputService, ToolBarViewModelCollection toolBars, int level = 0) { if (toolBars == null || toolBars.Count == 0) return; var indent = Indent(level); foreach (var toolBar in toolBars) { outputService.WriteLine(Invariant($"{indent}\"{toolBar.CommandGroup.Name}\""), NodesView); OutputToolBarNodes(outputService, toolBar.Items, level + 1); } }