C# Класс RoverOperator.CommandBase

The base implementation of a command.
Наследование: ICommand
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

OnCanExecuteChanged ( ) : void

Raises the CanExecuteChanged event.

Защищенные методы

Метод Описание
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

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() публичный Метод

Raises the CanExecuteChanged event.
public OnCanExecuteChanged ( ) : void
Результат void

OnExecute() защищенный абстрактный Метод

Executes the command.
protected abstract OnExecute ( object parameter ) : void
parameter object The parameter.
Результат void