示例#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);
 }