C# 클래스 SharpSpecs.UI.RelayCommand

상속: ICommand
파일 보기 프로젝트 열기: charlieridley/SharpSpecs

공개 메소드들

메소드 설명
Execute ( object parameter ) : void

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

RelayCommand ( Action execute ) : System

Initializes a new instance of the RelayCommand class.

RelayCommand ( Action execute, Predicate canExecute ) : System

Initializes a new instance of the RelayCommand class.

비공개 메소드들

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

메소드 상세

Execute() 공개 메소드

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.
리턴 void

RelayCommand() 공개 메소드

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute ) : System
execute Action The execute.
리턴 System

RelayCommand() 공개 메소드

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execute.
canExecute Predicate The can execute.
리턴 System