Exemplo n.º 1
0
        public void CloseDialog(ControlBar.PopUpDialogTypes whichone)
        {
            Frame popUpDialog = PopUpDialogList[(int)whichone];

            if (!m_GUIHost.HasChildDialog || !popUpDialog.Visible)
            {
                return;
            }

            popUpDialog.Visible          = false;
            m_GUIHost.GlobalChildDialog -= popUpDialog;
        }
Exemplo n.º 2
0
        public void OpenDialog(ControlBar.PopUpDialogTypes whichone)
        {
            Frame popUpDialog = PopUpDialogList[(int)whichone];

            if (m_GUIHost.HasChildDialog && whichone != ControlBar.PopUpDialogTypes.MultiPrinter || popUpDialog.Visible)
            {
                return;
            }

            Element2D element = m_GUIHost.GlobalChildDialog.Last();

            if (element != null && !IsOneOFOurs(element) && element.ID != 11001)
            {
                return;
            }

            m_GUIHost.GlobalChildDialog += popUpDialog;
            popUpDialog.Visible          = true;
        }