C# 클래스 Dev2.Runtime.Configuration.ViewModels.Base.DelegateCommand

상속: ICommand
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf

공개 메소드들

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

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

DelegateCommand ( Action action ) : System
DelegateCommand ( Action action, Predicate canExecute ) : System
Execute ( object parameter ) : void

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

보호된 메소드들

메소드 설명
OnCanExecuteChanged ( ) : void

메소드 상세

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

DelegateCommand() 공개 메소드

public DelegateCommand ( Action action ) : System
action Action
리턴 System

DelegateCommand() 공개 메소드

public DelegateCommand ( Action action, Predicate canExecute ) : System
action Action
canExecute Predicate
리턴 System

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

OnCanExecuteChanged() 보호된 메소드

protected OnCanExecuteChanged ( ) : void
리턴 void