C# Класс Channel9Downloader.Common.RelayCommand

A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is ''.
Наследование: ICommand
Показать файл Открыть проект Примеры использования класса

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

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

Executes the command.

RelayCommand ( Action execute ) : System

Initializes a new instance of the RelayCommand class that can always execute.

RelayCommand ( Action execute, Predicate canExecute ) : System

Initializes a new instance of the RelayCommand class.

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

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

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

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

Executes the command.
public Execute ( object parameter ) : void
parameter object Parameter for the command to execute.
Результат void

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

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

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

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