Class PluginFunctions
Inheritance
Inherited Members
Namespace: Asgard3.Core.Plugin
Assembly: Asgard3.Core.dll
Syntax
public static class PluginFunctions
Fields
| Improve this Doc View Sourcem_first
Declaration
public static bool m_first
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDriveInformation()
Declaration
public static List<string> DriveInformation()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
GetPlugins<T>(String)
Gets the plugins from the specificed folder.
Declaration
public static List<T> GetPlugins<T>(string folder)
Parameters
Type | Name | Description |
---|---|---|
System.String | folder | The folder to find that contains the plugins. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T> | The valid plugins. |
Type Parameters
Name | Description |
---|---|
T |
NewToolMenu(String, String, EventHandler)
Creates a new tool strip menu item.
Declaration
public static ToolStripMenuItem NewToolMenu(string name, string text, EventHandler e)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item (Do not include spaces). |
System.String | text | The text the user see's for the item (Can include spaces). |
System.EventHandler | e | The eventhandler that will handle the click event. |
Returns
Type | Description |
---|---|
System.Windows.Forms.ToolStripMenuItem | The configured toolstripmenuitem |
NewToolMenu(String, String, EventHandler, Boolean)
Creates a new tool strip menu item.
Declaration
public static ToolStripMenuItem NewToolMenu(string name, string text, EventHandler e, bool ischecked)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item (Do not include spaces). |
System.String | text | The text the user see's for the item (Can include spaces). |
System.EventHandler | e | The eventhandler that will handle the click event. |
System.Boolean | ischecked | Value of the checkbox |
Returns
Type | Description |
---|---|
System.Windows.Forms.ToolStripMenuItem |
NewToolMenu(String, String, EventHandler, Image)
Declaration
public static ToolStripMenuItem NewToolMenu(string name, string text, EventHandler e, Image Image)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | text | |
System.EventHandler | e | |
System.Drawing.Image | Image |
Returns
Type | Description |
---|---|
System.Windows.Forms.ToolStripMenuItem |
NewToolMenu(String, String, Keys, EventHandler)
Creates a new tool strip menu item.
Declaration
public static ToolStripMenuItem NewToolMenu(string name, string text, Keys key, EventHandler e)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item (Do not include spaces). |
System.String | text | The text the user see's for the item (Can include spaces). |
System.Windows.Forms.Keys | key | The shortcut key(s) required to click the menu item. |
System.EventHandler | e | The eventhandler that will handle the click event. |
Returns
Type | Description |
---|---|
System.Windows.Forms.ToolStripMenuItem | The configured toolstripmenuitem |
SetDoubleBuffered(Control)
Declaration
public static void SetDoubleBuffered(this Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
UpdatePlugins(String)
Declaration
public static List<UpdateItem> UpdatePlugins(string folder)
Parameters
Type | Name | Description |
---|---|---|
System.String | folder |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<UpdateItem> |