Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of <see cref="ParameterizedCommand"/>.
 /// </summary>
 public ParameterizedCommand()
 {
     Action = new ParameterizedCommandAction();
 }