C# Class RoverOperator.CommandBase

The base implementation of a command.
Inheritance: ICommand
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.

Execute ( object parameter ) : void

Defines the method to be called when the command is invoked.

OnCanExecuteChanged ( ) : void

Raises the CanExecuteChanged event.

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

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

OnCanExecuteChanged() public méthode

Raises the CanExecuteChanged event.
public OnCanExecuteChanged ( ) : void
Résultat void

OnExecute() protected abstract méthode

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