Exemplo n.º 1
0
        protected virtual void AttachDesignHost(IHost host)
        {
            var form = host.Children[0] as IWindowsFormInterface;

            if (form != null)
            {
                form.Form.Closing += DesignFormClosing;
                FFormPanel.SetHostedForm(form, _isDesignHostOwner);
            }
        }
Exemplo n.º 2
0
        protected virtual void DetachDesignHost()
        {
            var form = _designHost.Children[0] as IWindowsFormInterface;

            if (form != null)
            {
                form.Form.Closing -= DesignFormClosing;
            }
            FFormPanel.ClearHostedForm();
        }