/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { // Release all the plugins. CadKit.Plugins.Manager.Instance.release(this); lock (_mutex) { if (disposing && (components != null)) { components.Dispose(); components = null; } base.Dispose(disposing); _deserializeDockContent = null; _persistantForms = null; _windowForms = null; _windowMenu = null; _menuStrip = null; _statusStrip = null; _toolStrip = null; _dockPanel = null; if (null != _recentFiles) { _recentFiles.dereference(); _recentFiles = null; } } }
/// <summary> /// Initializes a Shapes instance. /// </summary> /// <param name="parent">The control owning the Shapes' instances.</param> /// <param name="formsMap">The map in which to display shapes.</param> public Shapes(ActiveXSample parent, FormsMap formsMap) { this.parent = parent; this.formsMap = formsMap; }