DelegateCommand

Ecng.ComponentModel

Delegate command without argument.

继承自: DelegateCommand<object>

构造函数

DelegateCommand
public DelegateCommand(Action execute)
delegateCommand = DelegateCommand(execute)

Creates a new command.

execute
The execution logic.
DelegateCommand
public DelegateCommand(Action<object> execute, Func<object, bool> canExecute)
delegateCommand = DelegateCommand(execute, canExecute)

Creates a new command with conditional execution.

execute
The execution logic.
canExecute
The execution status logic.