C# Class RoboGO.ViewModels.DelegateCommand

Command class for executing one function. Function type: void functionName(void)
Inheritance: ICommand
Datei anzeigen Open project: syre/SortingIndustrialRobot

Public Methods

Method Description
CanExecute ( object _objParam ) : bool

Able to execute.

DelegateCommand ( System.Action _aMethodToExecute ) : System

Constructor with function to call.

Execute ( object _objParam ) : void

Execute the command from the constructor.

Method Details

CanExecute() public method

Able to execute.
public CanExecute ( object _objParam ) : bool
_objParam object Unused from ICommand.
return bool

DelegateCommand() public method

Constructor with function to call.
public DelegateCommand ( System.Action _aMethodToExecute ) : System
_aMethodToExecute System.Action Function to call when command is used.
return System

Execute() public method

Execute the command from the constructor.
public Execute ( object _objParam ) : void
_objParam object Unused from ICommand.
return void