Пример #1
0
        public CommandTreeNode(ICommand command, CommandTreeNode parent = null) : base(command.Name, parent)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }

            _command  = command;
            _children = new CommandTreeNodeCollection(this);
        }
Пример #2
0
 public CommandTreeNode(string name, CommandTreeNode parent = null) : base(name, parent)
 {
     _children = new CommandTreeNodeCollection(this);
 }
Пример #3
0
 public CommandTreeNode()
 {
     _children = new CommandTreeNodeCollection(this);
 }