C# Class Dev2.Runtime.Configuration.ViewModels.Base.DelegateCommand

Inheritance: ICommand
Afficher le fichier Open project: Warewolf-ESB/Warewolf

Méthodes publiques

Méthode Description
CanExecute ( object parameter ) : bool

Defines the method that determines whether the command can execute in its current state.

DelegateCommand ( Action action ) : System
DelegateCommand ( Action action, Predicate canExecute ) : System
Execute ( object parameter ) : void

Defines the method to be called when the command is invoked.

Méthodes protégées

Méthode Description
OnCanExecuteChanged ( ) : void

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

DelegateCommand() public méthode

public DelegateCommand ( Action action ) : System
action Action
Résultat System

DelegateCommand() public méthode

public DelegateCommand ( Action action, Predicate canExecute ) : System
action Action
canExecute Predicate
Résultat System

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

OnCanExecuteChanged() protected méthode

protected OnCanExecuteChanged ( ) : void
Résultat void