/// <summary> /// Creates a new command. As CommandManger (Context) the global GCommandManger Singleton is used. /// </summary> /// <param name="execute">The execution logic.</param> /// <param name="canExecute">The execution status logic.</param> public WrapperCommand(ICommandUndo command, ICommandManager context) { if (command == null) throw new ArgumentNullException("command"); if (context == null) throw new ArgumentNullException("context"); _context = context; _command = command; }
/// <summary> /// Creates a new command. As CommandManger (Context) the global GCommandManger Singleton is used. /// </summary> /// <param name="execute">The execution logic.</param> /// <param name="canExecute">The execution status logic.</param> public WrapperCommand(ICommandSimple command) { if (command == null) throw new ArgumentNullException("command"); _command = command; }