C# Class RoverOperator.RelayCommand

The command that relays its functionality by invoking delegates.
Inheritance: CommandBase
显示文件 Open project: jpadillak/Concordia_Capstone2013-14

Public Methods

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

Protected Methods

Method Description
OnExecute ( object parameter ) : void

Executes the command.

Method Details

CanExecute() public method

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

OnExecute() protected method

Executes the command.
protected OnExecute ( object parameter ) : void
parameter object The parameter.
return void

RelayCommand() public method

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