C# Класс SharpSpecs.UI.RelayCommand

Наследование: ICommand
Показать файл Открыть проект

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

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

Defines the method to be called when the command is invoked.

RelayCommand ( Action execute ) : System

Initializes a new instance of the RelayCommand class.

RelayCommand ( Action execute, Predicate canExecute ) : System

Initializes a new instance of the RelayCommand class.

Приватные методы

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

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

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

Defines the method to be called when the command is invoked.
public Execute ( object parameter ) : void
parameter object Data used by the command. If the command does not require data to be passed, this object can be set to null.
Результат void

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

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute ) : System
execute Action The execute.
Результат System

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

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execute.
canExecute Predicate The can execute.
Результат System