示例#1
0
        public void Add(Command c)
        {
            var ch = c as CommandHeirarchyElement;

            if (ch.Parent != null)
                throw new InvalidOperationException("Command has already been inserted into the hierarchy!");

            c.Parent = this;
            Commands.Add(c);
        }
示例#2
0
文件: Command.cs 项目: Xcelled/aurora
 protected Command(string name, Command other)
     : this(name, other.Description, other._defaultSelfAuth, other._defaultTargetAuth, other.Hide)
 {
 }
示例#3
0
 public CommandAlias(string name, Command other)
     : base(name, other)
 {
     _other = other;
 }