C# Class ProtectEyes.CommandHandler

Inheritance: ICommand
Afficher le fichier Open project: qiuhaotc/ProtectEyes

Méthodes publiques

Méthode Description
CanExecute ( object parameter ) : bool

Forcess checking if execute is allowed

CommandHandler ( Action action, Func canExecute ) : System

Creates instance of the command handler

Execute ( object parameter ) : void

Method Details

CanExecute() public méthode

Forcess checking if execute is allowed
public CanExecute ( object parameter ) : bool
parameter object
Résultat bool

CommandHandler() public méthode

Creates instance of the command handler
public CommandHandler ( Action action, Func canExecute ) : System
action Action Action to be executed by the command
canExecute Func A bolean property to containing current permissions to execute the command
Résultat System

Execute() public méthode

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