C# Class SysInternalsUpdater.RelayCommand

Helper class for implementing ICommand
Inheritance: ICommand
Afficher le fichier Open project: Gordon-Beeming/Sys-Internals-Updater Class Usage Examples

Méthodes publiques

Méthode Description
Execute ( object parameter ) : void
InvokeCanExecuteChanged ( ) : void

Call this when you know something about this command's ability to execute changed.

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

Private Methods

Méthode Description
CanExecute ( object parameter ) : bool

Method Details

Execute() public méthode

public Execute ( object parameter ) : void
parameter object
Résultat void

InvokeCanExecuteChanged() public méthode

Call this when you know something about this command's ability to execute changed.
public InvokeCanExecuteChanged ( ) : void
Résultat void

RelayCommand() public méthode

public RelayCommand ( Action execute ) : System
execute Action
Résultat System

RelayCommand() public méthode

public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action
canExecute Predicate
Résultat System