C# 클래스 ActionCommand, arcgis-toolkit-dotnet

Very simple command that takes an System.Action with no parameters and invokes the System.Action when the ICommand.Execute(object) method is invoked.
상속: ICommand
파일 보기 프로젝트 열기: Esri/arcgis-toolkit-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
ActionCommand ( Action executeAction, Func canExecuteFunction ) : System

Initializes a new instance of the ActionCommand class.

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.

RaiseCanExecute ( ) : void

Raises the can execute function

메소드 상세

ActionCommand() 공개 메소드

Initializes a new instance of the ActionCommand class.
public ActionCommand ( Action executeAction, Func canExecuteFunction ) : System
executeAction Action The action to be performed on .
canExecuteFunction Func The fuction that will test if the action can be executed.
리턴 System

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

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

RaiseCanExecute() 공개 메소드

Raises the can execute function
public RaiseCanExecute ( ) : void
리턴 void