C# 클래스 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.

상속: System.EventArgs
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

공개 메소드들

메소드 설명
RunCommandEventArgs ( ) : System

Initializes a new instance of the RunCommandEventArgs class.

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

RunCommandEventArgs() 공개 메소드

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