/// <summary> /// Creates a new instance of <see cref="ParameterizedCommand"/>. /// </summary> /// <param name="action">The action to be invoked.</param> public ParameterizedCommand(ParameterizedCommandAction action) { Action = action; }
/// <summary> /// Creates a new instance of <see cref="ParameterizedCommand"/>. /// </summary> /// <param name="action">The action to be invoked.</param> public ParameterizedCommand(Action <object> action) { Action = new ParameterizedCommandAction(action); }
/// <summary> /// Creates a new instance of <see cref="ParameterizedCommand"/>. /// </summary> /// <param name="action">The action to be invoked.</param> /// <param name="condition">The condition upon which the action invocation is based. If this value is null, the condition evaluates to true.</param> public ParameterizedCommand(Action <object> action, Func <object, bool> condition) { Action = new ParameterizedCommandAction(action, condition); }
/// <summary> /// Creates a new instance of <see cref="ParameterizedCommand"/>. /// </summary> public ParameterizedCommand() { Action = new ParameterizedCommandAction(); }