Пример #1
0
        // Constructor
        /// <summary>
        ///
        /// </summary>
        /// <param name="manager"></param>
        public Command(CommandManager manager)
        {
            this.manager          = manager;
            this.commandInstances = new CommandInstanceList(this);

            manager.commands.Add(this);
        }
Пример #2
0
 // Constructor
 public Command(string strTag, ExecuteHandler handlerExecute, UpdateHandler handlerUpdate)
 {
     _commandInstances = new CommandInstanceList(this);
     Tag        = strTag;
     OnUpdate  += handlerUpdate;
     OnExecute += handlerExecute;
 }