C# Class SysInternalsUpdater.RelayCommand

Helper class for implementing ICommand
Inheritance: ICommand
Mostra file Open project: Gordon-Beeming/Sys-Internals-Updater Class Usage Examples

Public Methods

Method 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

Method Description
CanExecute ( object parameter ) : bool

Method Details

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void

InvokeCanExecuteChanged() public method

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

RelayCommand() public method

public RelayCommand ( Action execute ) : System
execute Action
return System

RelayCommand() public method

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