Exemplo n.º 1
0
        public IRadegastCommand AddCmd(string name, string desc, string usage, CommandExecuteDelegate executeDelegate)
        {
            IRadegastCommand cmd = new RadegastCommand(instance, executeDelegate)
            {
                Name        = name,
                Description = name,
                Usage       = usage
            };

            LoadCommand(cmd);
            return(cmd);
        }
Exemplo n.º 2
0
        public IRadegastCommand AddCmd(string name, string desc, string usage, CommandExecuteDelegate executeDelegate)
        {
            IRadegastCommand cmd = new RadegastCommand(instance, executeDelegate)
                                       {
                                           Name = name,
                                           Description = name,
                                           Usage = usage
                                       };

            LoadCommand(cmd);
            return cmd;
        }