C# 클래스 PaleTree.Plugins.PluginManager

상속: IPluginManager
파일 보기 프로젝트 열기: exectails/PaleTree 1 사용 예제들

공개 메소드들

메소드 설명
AddToMenu ( int index, string text, EventHandler onClick ) : void

Adds item to Plugin menu.

AddToMenu ( string text, EventHandler onClick ) : void

Adds item to Plugin menu.

AddToToolbar ( Image icon, string tooltip, EventHandler onClick ) : void

Adds button to toolbar.

AddToToolbar ( int index, Image icon, string tooltip, EventHandler onClick ) : void

Adds button to toolbar.

GetPacketList ( ) : IList

Returns a thread-safe list of all current packets.

GetSelectedPacket ( ) : PalePacket

Returns currently selected packet or null.

OpenCentered ( Form form ) : void

Opens form centered on the main window.

PluginManager ( FrmMain frmMain ) : System

Creates new plugin manager.

비공개 메소드들

메소드 설명
Load ( ) : void

Loads plugins from Plugins folder.

OnClear ( ) : void
OnEnd ( ) : void

Fires End event.

OnReady ( ) : void

Fires Ready event.

OnRecv ( PalePacket palePacket ) : void

Fires Recv event.

OnSelected ( PalePacket palePacket ) : void

Fires End event.

OnSelectedHex ( PalePacket palePacket, int start ) : void

Fires End event.

OnSend ( PalePacket palePacket ) : void

Fires Send event.

메소드 상세

AddToMenu() 공개 메소드

Adds item to Plugin menu.
public AddToMenu ( int index, string text, EventHandler onClick ) : void
index int Index at which to insert the item
text string Text used for item
onClick EventHandler Event handler for when the item is clicked
리턴 void

AddToMenu() 공개 메소드

Adds item to Plugin menu.
public AddToMenu ( string text, EventHandler onClick ) : void
text string Text used for item
onClick EventHandler Event handler for when the item is clicked
리턴 void

AddToToolbar() 공개 메소드

Adds button to toolbar.
public AddToToolbar ( Image icon, string tooltip, EventHandler onClick ) : void
icon Image Icon for the button
tooltip string Tooltip for the button
onClick EventHandler Event handler for when the button is clicked
리턴 void

AddToToolbar() 공개 메소드

Adds button to toolbar.
public AddToToolbar ( int index, Image icon, string tooltip, EventHandler onClick ) : void
index int Index at which to insert the button
icon Image Icon for the button
tooltip string Tooltip for the button
onClick EventHandler Event handler for when the button is clicked
리턴 void

GetPacketList() 공개 메소드

Returns a thread-safe list of all current packets.
public GetPacketList ( ) : IList
리턴 IList

GetSelectedPacket() 공개 메소드

Returns currently selected packet or null.
public GetSelectedPacket ( ) : PalePacket
리턴 PaleTree.Shared.PalePacket

OpenCentered() 공개 메소드

Opens form centered on the main window.
public OpenCentered ( Form form ) : void
form System.Windows.Forms.Form Form to show
리턴 void

PluginManager() 공개 메소드

Creates new plugin manager.
public PluginManager ( FrmMain frmMain ) : System
frmMain FrmMain Main window
리턴 System