C# Class PaleTree.Plugins.PluginManager

Inheritance: IPluginManager
Afficher le fichier Open project: exectails/PaleTree Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

AddToMenu() public méthode

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
Résultat void

AddToMenu() public méthode

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
Résultat void

AddToToolbar() public méthode

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
Résultat void

AddToToolbar() public méthode

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
Résultat void

GetPacketList() public méthode

Returns a thread-safe list of all current packets.
public GetPacketList ( ) : IList
Résultat IList

GetSelectedPacket() public méthode

Returns currently selected packet or null.
public GetSelectedPacket ( ) : PalePacket
Résultat PaleTree.Shared.PalePacket

OpenCentered() public méthode

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

PluginManager() public méthode

Creates new plugin manager.
public PluginManager ( FrmMain frmMain ) : System
frmMain FrmMain Main window
Résultat System