The ApplicationPlugIn class contains a number of virtual functions that you override to respond to application events. These functions include:
In the following example, an application plugin named “MyApplication” displays a dialog box when the plugin is first loaded:
public class MyApplication : Autodesk.Map.IM.Forms.ApplicationPlugIn
{
public override void OnLoad(object sender, EventArgs e)
{
base.OnLoad(sender, e);
// Display the dialog box (defined elsewhere).
Form1 theForm = new Form1();
theForm.Show();
}
}