[]
        
(Showing Draft Content)

GrapeCity.Viewer.Common.DelegateCommand-1

DelegateCommand<TParm> Class

Represents a command that delegates its implementation to a delegate with a parameter of type TParm.

Inheritance
DelegateCommand<TParm>
Implements
Namespace: GrapeCity.Viewer.Common
Assembly: MESCIUS.ActiveReports.Viewer.Common.dll
Syntax
public class DelegateCommand<TParm> : ICommand
Type Parameters
Name Description
TParm

The type of parameter used by the command.

Constructors

Name Description
DelegateCommand(Action<TParm>)

Initializes a new instance of the DelegateCommand<TParm> class.

DelegateCommand(Action<TParm>, Predicate<TParm>)

Initializes a new instance of the DelegateCommand<TParm> class.

Methods

Name Description
CanExecute(object)

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

Execute(object)

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

OnCanExecuteChanged(EventArgs)

Raises the CanExecuteChanged event, notifying subscribers that the ability to execute the command has changed.

RaiseCanExecuteChanged()

Raises the CanExecuteChanged event from external code.

Events

Name Description
CanExecuteChanged

Occurs when the ability of the command to execute changes.