Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 protected Command(string name, Command other)
     : this(name, other.Description, other._defaultSelfAuth, other._defaultTargetAuth, other.Hide)
 {
 }
Ejemplo n.º 3
0
 public CommandAlias(string name, Command other)
     : base(name, other)
 {
     _other = other;
 }