Exemplo n.º 1
0
    /////////////////////////////////////////////////////////////////////////////////////

    /// <summary>
    /// Displays the MdiForm.
    /// </summary>
    ///
    private void ShowMdiForm()
    {
        if (Em.IsTextUI)
        {
            MdiForm.Center(MainForm.MdiClient);
            MdiForm.MdiParent = MainForm;

            if (!IsModal)
            {
                MainForm.LayoutMdi(MdiLayout.Cascade);
            }
        }
        else // GUI
        {
            if (MainForm.ActiveMdiChild == null)
            {
                MdiForm.Center(MainForm.MdiClient);
            }

            if (!IsModal)
            {
                MdiForm.MdiParent = MainForm;
                MdiForm.Visible   = true;
                MdiForm.Focus();
            }
        }
    }