Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 //--------------------------------------------------------------
 /// <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();
 }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        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);
            }
        }