C# Class Dev2.Runtime.Configuration.ViewModels.Base.DelegateCommand

Inheritance: ICommand
显示文件 Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
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.

Protected Methods

Method Description
OnCanExecuteChanged ( ) : void

Method Details

CanExecute() public method

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.
return bool

DelegateCommand() public method

public DelegateCommand ( Action action ) : System
action Action
return System

DelegateCommand() public method

public DelegateCommand ( Action action, Predicate canExecute ) : System
action Action
canExecute Predicate
return System

Execute() public method

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.
return void

OnCanExecuteChanged() protected method

protected OnCanExecuteChanged ( ) : void
return void