C# Класс Buddy.UI.Core.RelayCommand

Provides a default implementation for a simple command.
Наследование: ICommand
Показать файл Открыть проект

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

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

Determines whether this command can be executed.

CanExecute ( object parameter ) : bool

Determines whether this command can be executed.

Execute ( object parameter ) : void

Executes this command.

RelayCommand ( Action action ) : System

Initializes a new instance of the RelayCommand class.

RelayCommand ( Action action, Func canExecute ) : System

Initializes a new instance of the RelayCommand class.

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

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

Determines whether this command can be executed.
public CanExecute ( ) : bool
Результат bool

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

Determines whether this command can be executed.
public CanExecute ( object parameter ) : bool
parameter object The parameter.
Результат bool

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

Executes this command.
public Execute ( object parameter ) : void
parameter object The parameter.
Результат void

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

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action action ) : System
action Action The action to be invoked when this command is triggered.
Результат System

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

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action action, Func canExecute ) : System
action Action The action to be invoked when this command is triggered.
canExecute Func Precondition determining whether this command can be executed or not.
Результат System