C# Класс Dev2.Runtime.Configuration.ViewModels.Base.DelegateCommand

Наследование: ICommand
Показать файл Открыть проект

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

Метод Описание
CanExecute ( object parameter ) : bool

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

DelegateCommand ( Action action ) : System
DelegateCommand ( Action action, Predicate canExecute ) : System
Execute ( object parameter ) : void

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

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

Метод Описание
OnCanExecuteChanged ( ) : void

Описание методов

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

DelegateCommand() публичный Метод

public DelegateCommand ( Action action ) : System
action Action
Результат System

DelegateCommand() публичный Метод

public DelegateCommand ( Action action, Predicate canExecute ) : System
action Action
canExecute Predicate
Результат System

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() защищенный Метод

protected OnCanExecuteChanged ( ) : void
Результат void