C# Class RoverOperator.RelayCommand

The command that relays its functionality by invoking delegates.
Inheritance: CommandBase
Afficher le fichier Open project: jpadillak/Concordia_Capstone2013-14

Méthodes publiques

Méthode Description
CanExecute ( object parameter ) : bool

Defines the method that determines whether the command can execute in its current state.

RelayCommand ( Action execute, bool>.Func canExecute = null ) : System

Initializes a new instance of the RelayCommand class.

Méthodes protégées

Méthode Description
OnExecute ( object parameter ) : void

Executes the command.

Method Details

CanExecute() public méthode

Defines the method that determines whether the command can execute in its current state.
public CanExecute ( object parameter ) : bool
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 bool

OnExecute() protected méthode

Executes the command.
protected OnExecute ( object parameter ) : void
parameter object The parameter.
Résultat void

RelayCommand() public méthode

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute, bool>.Func canExecute = null ) : System
execute Action The execute.
canExecute bool>.Func The can execute.
Résultat System