C# Class GraphicEditor.Model.RelayCommand

Inheritance: ICommand
Show file Open project: msCube/Gallery Class Usage Examples

Public Methods

Method Description
CanExecute ( object parameter ) : bool
Destroy ( ) : void
Execute ( object parameter ) : void
OnCanExecuteChanged ( ) : void
RelayCommand ( Action execute ) : System
RelayCommand ( Action execute, Predicate canExecute ) : System

Private Methods

Method Description
DefaultCanExecute ( object parameter ) : bool

Method Details

CanExecute() public method

public CanExecute ( object parameter ) : bool
parameter object
return bool

Destroy() public method

public Destroy ( ) : void
return void

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void

OnCanExecuteChanged() public method

public OnCanExecuteChanged ( ) : void
return void

RelayCommand() public method

public RelayCommand ( Action execute ) : System
execute Action
return System

RelayCommand() public method

public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action
canExecute Predicate
return System