C# 클래스 ProtectEyes.CommandHandler

상속: ICommand
파일 보기 프로젝트 열기: qiuhaotc/ProtectEyes

공개 메소드들

메소드 설명
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