C# Class 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 ''.
Inheritance: ICommand
Show file Open project: MadCowDevelopment/Channel9Downloader Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
CanExecute ( object parameter ) : bool

Method Details

Execute() public method

Executes the command.
public Execute ( object parameter ) : void
parameter object Parameter for the command to execute.
return void

RelayCommand() public method

Initializes a new instance of the RelayCommand class that can always execute.
public RelayCommand ( Action execute ) : System
execute Action The execution logic.
return System

RelayCommand() public method

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.
return System