C# Класс GSF.TimeSeries.UI.Commands.RelayCommand

Defines a relay ICommand.
Наследование: 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.

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