Ejemplo n.º 1
0
        internal void RefreshMdiIntegration()
        {
            Form mdiParent = GetMdiParentForm();

            if (mdiParent == null)
            {
                if (HiddenMdiChild != null)
                {
                    m_hiddenMdiChild.Close();
                    m_hiddenMdiChild = null;
                }
            }
            else
            {
                if (HiddenMdiChild == null)
                {
                    m_hiddenMdiChild = new HiddenMdiChild(this);
                }

                m_hiddenMdiChild.SetMdiParent(mdiParent);
            }

            if (DockPanel != null)
            {
                if (DockPanel.ActiveDocument != null)
                {
                    if (DockPanel.ActiveDocument.HiddenMdiChild != null)
                    {
                        DockPanel.ActiveDocument.HiddenMdiChild.Activate();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        internal void RefreshMdiIntegration()
        {
            Form mdiParent = GetMdiParentForm();

            if (mdiParent != null && HiddenMdiChild == null)
            {
                m_hiddenMdiChild = new HiddenMdiChild(this);
            }
            else if (mdiParent != null && HiddenMdiChild != null)
            {
                m_hiddenMdiChild.SetMdiParent(mdiParent);
            }
            else if (mdiParent == null && HiddenMdiChild != null)
            {
                m_hiddenMdiChild.Close();
                m_hiddenMdiChild = null;
            }
        }