C# 클래스 RoverOperator.RelayCommand

The command that relays its functionality by invoking delegates.
상속: CommandBase
파일 보기 프로젝트 열기: jpadillak/Concordia_Capstone2013-14

공개 메소드들

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

Defines the method that determines whether the command can execute in its current state.

RelayCommand ( Action execute, bool>.Func canExecute = null ) : System

Initializes a new instance of the RelayCommand class.

보호된 메소드들

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

Executes the command.

메소드 상세

CanExecute() 공개 메소드

Defines the method that determines whether the command can execute in its current state.
public CanExecute ( object parameter ) : bool
parameter object Data used by the command. If the command does not require data to be passed, this object can be set to null.
리턴 bool

OnExecute() 보호된 메소드

Executes the command.
protected OnExecute ( object parameter ) : void
parameter object The parameter.
리턴 void

RelayCommand() 공개 메소드

Initializes a new instance of the RelayCommand class.
public RelayCommand ( Action execute, bool>.Func canExecute = null ) : System
execute Action The execute.
canExecute bool>.Func The can execute.
리턴 System