C# Class VSSonarExtensionUi.Model.Helpers.VsRelayCommand

Inheritance: ICommand
Mostra file Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Public Methods

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

VsRelayCommand ( Action execute ) : System

Initializes a new instance of DelegateCommand{T}.

CanExecute will always return true.

VsRelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new 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

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

VsRelayCommand() public method

Initializes a new instance of DelegateCommand{T}.
CanExecute will always return true.
public VsRelayCommand ( Action execute ) : System
execute Action Delegate to execute when Execute is called on the command. This can be null to just hook up a CanExecute delegate.
return System

VsRelayCommand() public method

Creates a new command.
execute
public VsRelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execution logic.
canExecute Predicate The execution status logic.
return System