C# 클래스 Buddy.UI.Core.RelayCommand

Provides a default implementation for a simple command.
상속: ICommand
파일 보기 프로젝트 열기: BosslandGmbH/Buddy.UI

공개 메소드들

메소드 설명
CanExecute ( ) : bool

Determines whether this command can be executed.

CanExecute ( object parameter ) : bool

Determines whether this command can be executed.

Execute ( object parameter ) : void

Executes this command.

RelayCommand ( Action action ) : System

Initializes a new instance of the RelayCommand class.

RelayCommand ( Action action, Func canExecute ) : System

Initializes a new instance of the RelayCommand class.

메소드 상세

CanExecute() 공개 메소드

Determines whether this command can be executed.
public CanExecute ( ) : bool
리턴 bool

CanExecute() 공개 메소드

Determines whether this command can be executed.
public CanExecute ( object parameter ) : bool
parameter object The parameter.
리턴 bool

Execute() 공개 메소드

Executes this command.
public Execute ( object parameter ) : void
parameter object The parameter.
리턴 void

RelayCommand() 공개 메소드

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action action ) : System
action Action The action to be invoked when this command is triggered.
리턴 System

RelayCommand() 공개 메소드

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action action, Func canExecute ) : System
action Action The action to be invoked when this command is triggered.
canExecute Func Precondition determining whether this command can be executed or not.
리턴 System