Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LegalLab.Models.Command Class Reference

Defines a custom command. More...

Inheritance diagram for LegalLab.Models.Command:

Public Member Functions

 Command (ExecuteHandler ExecuteCallback)
 Defines a custom command. More...
 
 Command (CanExecuteHandler CanExecuteCallback, ExecuteHandler ExecuteCallback)
 Defines a custom command. More...
 
void RaiseCanExecuteChanged ()
 Raises the CanExecuteChanged event. More...
 
bool CanExecute (object parameter)
 Defines the method that determines whether the command can execute in its current state. More...
 
async void Execute (object parameter)
 Defines the method to be called when the command is invoked. More...
 

Events

EventHandler CanExecuteChanged
 Occurs when changes occur that affect whether or not the command should execute. More...
 

Detailed Description

Defines a custom command.

Definition at line 22 of file Command.cs.

Constructor & Destructor Documentation

◆ Command() [1/2]

LegalLab.Models.Command.Command ( ExecuteHandler  ExecuteCallback)

Defines a custom command.

Parameters
ExecuteCallbackMethod called when the command is executed.

Definition at line 31 of file Command.cs.

◆ Command() [2/2]

LegalLab.Models.Command.Command ( CanExecuteHandler  CanExecuteCallback,
ExecuteHandler  ExecuteCallback 
)

Defines a custom command.

Parameters
CanExecuteCallbackMethod called to determine if the command can be executed.
ExecuteCallbackMethod called when the command is executed.

Definition at line 41 of file Command.cs.

Member Function Documentation

◆ CanExecute()

bool LegalLab.Models.Command.CanExecute ( object  parameter)

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

Parameters
parameterData used by the command. If the command does not require data to be passed, this object can be set to null.
Returns
true if this command can be executed; otherwise, false.

Definition at line 77 of file Command.cs.

◆ Execute()

async void LegalLab.Models.Command.Execute ( object  parameter)

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

Parameters
parameterData used by the command. If the command does not require data to be passed, this object can be set to null.

Definition at line 99 of file Command.cs.

◆ RaiseCanExecuteChanged()

void LegalLab.Models.Command.RaiseCanExecuteChanged ( )

Raises the CanExecuteChanged event.

Definition at line 55 of file Command.cs.

Event Documentation

◆ CanExecuteChanged

EventHandler LegalLab.Models.Command.CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.

Definition at line 50 of file Command.cs.


The documentation for this class was generated from the following file: