// Disposer public override void Dispose() { // Not already disposed? if (!IsDisposed) { // Clean up General.Interface.RemoveDocker(undoredodocker); undoredopanel.Dispose(); menusform.Unregister(); menusform.Dispose(); menusform = null; curvelinedefsform.Dispose(); curvelinedefsform = null; findreplaceform.Dispose(); findreplaceform = null; errorcheckform.Dispose(); errorcheckform = null; // Done me = null; base.Dispose(); } }
// Disposer public override void Dispose() { // Not already disposed? if (!IsDisposed) { // Clean up General.Interface.RemoveDocker(undoredodocker); undoredopanel.Dispose(); drawingOverridesPanel.Dispose(); //mxd menusform.Unregister(); menusform.Dispose(); menusform = null; //mxd. These are created on demand, so they may be nulls. if (curvelinedefsform != null) { curvelinedefsform.Dispose(); curvelinedefsform = null; } if (findreplaceform != null) { findreplaceform.Dispose(); findreplaceform = null; } if (errorcheckform != null) { errorcheckform.Dispose(); errorcheckform = null; } // Done me = null; base.Dispose(); } }