C# Класс RoverOperator.RelayCommand

The command that relays its functionality by invoking delegates.
Наследование: CommandBase
Показать файл Открыть проект

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

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