/// <summary> /// Called when the plugin is loaded. /// </summary> void CadKit.Interfaces.IPlugin.start(object caller) { CadKit.Interfaces.IMainForm mw = caller as CadKit.Interfaces.IMainForm; if (null != mw) { System.Windows.Forms.Form parent = mw.Form as System.Windows.Forms.Form; if (null != parent) { System.Diagnostics.Debug.Assert(false == parent.InvokeRequired); parent.Shown += this._parentShown; } } }
/// <summary> /// Called when the plugin is loaded. /// </summary> void CadKit.Interfaces.IPlugin.start(object caller) { lock (_mutex) { CadKit.Interfaces.IMainForm mw = caller as CadKit.Interfaces.IMainForm; if (null != mw) { System.Windows.Forms.Form parent = mw.Form as System.Windows.Forms.Form; if (null != parent) { parent.Shown += this._parentShown; } } } }