getOk() public method

public getOk ( ) : bool
return bool
Esempio n. 1
0
        private void mnuPageSetup_Click(object sender, EventArgs e)
        {
            fPageSetup pageSetup = new fPageSetup();
            cEditor    editor    = cMainEditor.getDocActive();

            if (editor != null)
            {
                pageSetup.initDialog(editor.getPaperSize(), editor.getCustomHeight(), editor.getCustomWidth(), editor.getOrientation());
            }

            pageSetup.ShowDialog();

            if (pageSetup.getOk())
            {
                m_paperSize       = (int)pageSetup.getPaperSize();
                m_paperSizeHeight = pageSetup.getCustomHeight();
                m_paperSizeWidth  = pageSetup.getCustomWidth();
                m_orientation     = pageSetup.getOrientation();
                if (editor != null)
                {
                    editor.setPaperSize((csReportPaperType)m_paperSize);
                    editor.setOrientation(m_orientation);
                    editor.setCustomHeight(m_paperSizeHeight);
                    editor.setCustomWidth(m_paperSizeWidth);
                    editor.refreshReport();
                }
            }
            pageSetup.Close();
        }
Esempio n. 2
0
        private void mnuPageSetup_Click(object sender, EventArgs e)
        {
            fPageSetup pageSetup = new fPageSetup();
            cEditor editor = cMainEditor.getDocActive();
            if (editor != null)
            {
                pageSetup.initDialog(editor.getPaperSize(), editor.getCustomHeight(), editor.getCustomWidth(), editor.getOrientation());
            }

            pageSetup.ShowDialog();

            if (pageSetup.getOk())
            {
                m_paperSize = (int)pageSetup.getPaperSize();
                m_paperSizeHeight = pageSetup.getCustomHeight();
                m_paperSizeWidth = pageSetup.getCustomWidth();
                m_orientation = pageSetup.getOrientation();
                if (editor != null)
                {
                    editor.setPaperSize((csReportPaperType)m_paperSize);
                    editor.setOrientation(m_orientation);
                    editor.setCustomHeight(m_paperSizeHeight);
                    editor.setCustomWidth(m_paperSizeWidth);
                    editor.refreshReport();
                }
            }
            pageSetup.Close();
        }