C# Класс TypeScript4WebMatrix.DelegateCommand

Simple implementation of the DelegateCommand (aka RelayCommand) pattern.
Наследование: ICommand
Показать файл Открыть проект

Открытые методы

Метод Описание
CanExecute ( object parameter ) : bool

Determines if the command can execute.

DelegateCommand ( Action execute ) : System

Initializes a new instance of the DelegateCommand class.

DelegateCommand ( bool>.Func canExecute, Action execute ) : System

Initializes a new instance of the DelegateCommand class.

Execute ( object parameter ) : void

Executes the command.

OnCanExecuteChanged ( ) : void

Invokes the CanExecuteChanged event.

Описание методов

CanExecute() публичный Метод

Determines if the command can execute.
public CanExecute ( object parameter ) : bool
parameter object Data used by the command.
Результат bool

DelegateCommand() публичный Метод

Initializes a new instance of the DelegateCommand class.
public DelegateCommand ( Action execute ) : System
execute Action Action to invoke when Execute is called.
Результат System

DelegateCommand() публичный Метод

Initializes a new instance of the DelegateCommand class.
public DelegateCommand ( bool>.Func canExecute, Action execute ) : System
canExecute bool>.Func Func to invoke when CanExecute is called.
execute Action Action to invoke when Execute is called.
Результат System

Execute() публичный Метод

Executes the command.
public Execute ( object parameter ) : void
parameter object Data used by the command.
Результат void

OnCanExecuteChanged() публичный Метод

Invokes the CanExecuteChanged event.
public OnCanExecuteChanged ( ) : void
Результат void