C# Класс ProtectEyes.CommandHandler

Наследование: ICommand
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

CanExecute() публичный Метод

Forcess checking if execute is allowed
public CanExecute ( object parameter ) : bool
parameter object
Результат bool

CommandHandler() публичный Метод

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
Результат System

Execute() публичный Метод

public Execute ( object parameter ) : void
parameter object
Результат void