// This is called when the plugin is terminated public override void Dispose() { // Clean up interfaceform.Dispose(); interfaceform = null; vpo.Dispose(); vpo = null; General.Actions.UnbindMethods(this); base.Dispose(); }
// This event is called when the plugin is initialized public override void OnInitialize() { base.OnInitialize(); General.Actions.BindMethods(this); // Load interface controls interfaceform = new InterfaceForm(); // Load VPO manager (manages multithreading and communication with vpo.dll) vpo = new VPOManager(); // Keep a static reference me = this; }
public override void OnMapOpenEnd() { enabled = (General.Map.DOOM || General.Map.HEXEN); if (enabled) { // Load interface controls interfaceform = new InterfaceForm(); // Load VPO manager (manages multithreading and communication with vpo.dll) vpo = new VPOManager(); // Keep a static reference me = this; } }
// This is called when the plugin is terminated public override void Dispose() { //mxd. Active and not already disposed? if (!IsDisposed) { if (enabled) { // Clean up interfaceform.Dispose(); interfaceform = null; vpo.Dispose(); vpo = null; // Done me = null; } base.Dispose(); } }
// This is called when the plugin is terminated public override void Dispose() { //mxd. Active and not already disposed? if (!IsDisposed) { if (interfaceform != null) { interfaceform.Dispose(); interfaceform = null; } if (vpo != null) { vpo.Dispose(); vpo = null; } // Done me = null; base.Dispose(); } }