C# Class Smrf.NodeXL.ExcelTemplate.RunCommandEventArgs

Provides information for a command that needs to be run.
NodeXL uses the "chain of responsibility" pattern for sending commands from one UI object to another -- from the Ribbon to the TaskPane, for example, and from the TaskPane to the workbook. With this pattern, the sender sends a command to one or more receivers without knowing which receiver will handle the command.

In NodeXL's case, .NET's standard event mechanism is used to send and receive the commands. A command is distinguished by a class derived from this RunCommandEventArgs base class. The derived class may include event information as properties when necessary. A command receiver, which implements a RunCommandEventHandler method, determines which command needs to be run by checking the derived type of the RunCommandEventArgs object that gets passed to the method.

The CommandDispatcher static class is used by senders to send commands. Receivers receive commands by subscribing to the CommandDispatcher.CommandDispatcher.CommandSent event.

Inheritance: System.EventArgs
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
RunCommandEventArgs ( ) : System

Initializes a new instance of the RunCommandEventArgs class.

Private Methods

Method Description
AssertValid ( ) : void

Method Details

RunCommandEventArgs() public method

Initializes a new instance of the RunCommandEventArgs class.
public RunCommandEventArgs ( ) : System
return System