public CommandTreeNode(ICommand command, CommandTreeNode parent = null) : base(command.Name, parent) { if (command == null) { throw new ArgumentNullException("command"); } _command = command; _children = new CommandTreeNodeCollection(this); }
public CommandTreeNode(string name, CommandTreeNode parent = null) : base(name, parent) { _children = new CommandTreeNodeCollection(this); }
public CommandTreeNode() { _children = new CommandTreeNodeCollection(this); }