C# Class GSF.TimeSeries.UI.Commands.RelayCommand

Defines a relay ICommand.
Inheritance: ICommand
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

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.

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

Creates a new RelayCommand for the common case delegates.

RelayCommand ( Action execute, Predicate canExecute = null ) : System

Creates a new RelayCommand.

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 . If the 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 . If the does not require /// data to be passed, this object can be set to null. ///
return void

RelayCommand() public method

Creates a new RelayCommand for the common case delegates.
public RelayCommand ( System.Action execute, Func canExecute = null ) : System
execute System.Action Execute method pointer.
canExecute Func Can execute method pointer.
return System

RelayCommand() public method

Creates a new RelayCommand.
public RelayCommand ( Action execute, Predicate canExecute = null ) : System
execute Action Execute method pointer.
canExecute Predicate Can execute method pointer.
return System