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
Afficher le fichier Open project: MadCowDevelopment/Channel9Downloader Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CanExecute ( object parameter ) : bool

Method Details

Execute() public méthode

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

RelayCommand() public méthode

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

RelayCommand() public méthode

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.
Résultat System