C# 클래스 GSF.TimeSeries.UI.Commands.RelayCommand

Defines a relay ICommand.
상속: ICommand
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

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

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

Execute ( object parameter ) : void

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

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

Creates a new RelayCommand for the common case delegates.

RelayCommand ( Action execute, Predicate canExecute = null ) : System

Creates a new RelayCommand.

메소드 상세

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 . If the does not require /// data to be passed, this object can be set to null. ///
리턴 bool

Execute() 공개 메소드

Defines the method to be called when the command is invoked.
public Execute ( object parameter ) : void
parameter object /// Data used by the . If the does not require /// data to be passed, this object can be set to null. ///
리턴 void

RelayCommand() 공개 메소드

Creates a new RelayCommand for the common case delegates.
public RelayCommand ( System.Action execute, Func canExecute = null ) : System
execute System.Action Execute method pointer.
canExecute Func Can execute method pointer.
리턴 System

RelayCommand() 공개 메소드

Creates a new RelayCommand.
public RelayCommand ( Action execute, Predicate canExecute = null ) : System
execute Action Execute method pointer.
canExecute Predicate Can execute method pointer.
리턴 System