C# Class SharpSpecs.UI.RelayCommand

Inheritance: ICommand
Show file Open project: charlieridley/SharpSpecs

Public Methods

Method 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

Method Description
CanExecute ( object parameter ) : bool

Method Details

Execute() public method

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

RelayCommand() public method

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute ) : System
execute Action The execute.
return System

RelayCommand() public method

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execute.
canExecute Predicate The can execute.
return System