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

Defines a relay ICommand.
Inheritance: ICommand
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

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.

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

RelayCommand() public méthode

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.
Résultat System

RelayCommand() public méthode

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