C# Class SharpSpecs.UI.RelayCommand

Inheritance: ICommand
Afficher le fichier Open project: charlieridley/SharpSpecs

Méthodes publiques

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

Private Methods

Méthode Description
CanExecute ( object parameter ) : bool

Method Details

Execute() public méthode

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

RelayCommand() public méthode

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute ) : System
execute Action The execute.
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 execute.
canExecute Predicate The can execute.
Résultat System