protected virtual void AttachDesignHost(IHost host) { var form = host.Children[0] as IWindowsFormInterface; if (form != null) { form.Form.Closing += DesignFormClosing; FFormPanel.SetHostedForm(form, _isDesignHostOwner); } }
protected virtual void DetachDesignHost() { var form = _designHost.Children[0] as IWindowsFormInterface; if (form != null) { form.Form.Closing -= DesignFormClosing; } FFormPanel.ClearHostedForm(); }