C# 클래스 TypeScript4WebMatrix.DelegateCommand

Simple implementation of the DelegateCommand (aka RelayCommand) pattern.
상속: ICommand
파일 보기 프로젝트 열기: MacawNL/TypeScript4WebMatrix

공개 메소드들

메소드 설명
CanExecute ( object parameter ) : bool

Determines if the command can execute.

DelegateCommand ( Action execute ) : System

Initializes a new instance of the DelegateCommand class.

DelegateCommand ( bool>.Func canExecute, Action execute ) : System

Initializes a new instance of the DelegateCommand class.

Execute ( object parameter ) : void

Executes the command.

OnCanExecuteChanged ( ) : void

Invokes the CanExecuteChanged event.

메소드 상세

CanExecute() 공개 메소드

Determines if the command can execute.
public CanExecute ( object parameter ) : bool
parameter object Data used by the command.
리턴 bool

DelegateCommand() 공개 메소드

Initializes a new instance of the DelegateCommand class.
public DelegateCommand ( Action execute ) : System
execute Action Action to invoke when Execute is called.
리턴 System

DelegateCommand() 공개 메소드

Initializes a new instance of the DelegateCommand class.
public DelegateCommand ( bool>.Func canExecute, Action execute ) : System
canExecute bool>.Func Func to invoke when CanExecute is called.
execute Action Action to invoke when Execute is called.
리턴 System

Execute() 공개 메소드

Executes the command.
public Execute ( object parameter ) : void
parameter object Data used by the command.
리턴 void

OnCanExecuteChanged() 공개 메소드

Invokes the CanExecuteChanged event.
public OnCanExecuteChanged ( ) : void
리턴 void