Beispiel #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();
        }
Beispiel #2
0
        private void mnuNewReport_Click(object sender, EventArgs e)
        {
            cEditor editor = createEditor();

            editor.init();
            editor.newReport(null);
        }
Beispiel #3
0
        public void init()
        {
            cEditor editor = new cEditor(this, pnEditor, pnRule, pnReport, tbpEditor);

            editor.init();
            editor.newReport(null);
        }
Beispiel #4
0
 public void showProperties(cEditor editor, string key)
 {
     lv_properties.Items.Clear();
     if (editor != null)
     {
         setObjectDescription(getControlOrSection(editor, key));
     }
 }
Beispiel #5
0
 public static fToolbox getToolbox(cEditor editor)
 {
     if (m_fToolbox == null || m_fToolbox.IsDisposed)
     {
         m_fToolbox = new fToolbox();
     }
     m_fToolbox.setHandler(editor);
     return(m_fToolbox);
 }
Beispiel #6
0
        private void mnuDataBaseSetToMainConnect_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.setAllConnectToMainConnect();
            }
        }
Beispiel #7
0
        private void deleteReportObject(Boolean isSectionLine)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.deleteObj(isSectionLine);
            }
        }
Beispiel #8
0
        private void mnuEditAddFooter_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.addSection(csRptSectionType.FOOTER);
            }
        }
Beispiel #9
0
        public void showControls(cEditor editor)
        {
            lv_controls.Items.Clear();

            if (editor != null)
            {
                cGlobals.addCtrls(editor.getReport(), lv_controls, C_CTRL_IMAGE, C_DB_IMAGE);
            }
        }
Beispiel #10
0
        private void paste(Boolean dontMove)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.paste(false);
            }
        }
Beispiel #11
0
        private void copy()
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.copy();
            }
        }
Beispiel #12
0
        private void tsbBold_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.setFontBold();
            }
        }
Beispiel #13
0
        private void alignText(CSReportGlobals.HorizontalAlignment align)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.textAlign(align);
            }
        }
Beispiel #14
0
 public static fTreeViewCtrls getCtrlTreeBox(cEditor editor)
 {
     if (m_fTreeViewCtrls == null || m_fTreeViewCtrls.IsDisposed)
     {
         m_fTreeViewCtrls = new fTreeViewCtrls();
     }
     m_fTreeViewCtrls.setHandler(editor);
     return(m_fTreeViewCtrls);
 }
Beispiel #15
0
 public static fControls getCtrlBox(cEditor editor)
 {
     if (m_fControls == null || m_fControls.IsDisposed)
     {
         m_fControls = new fControls();
     }
     m_fControls.setHandler(editor);
     return(m_fControls);
 }
Beispiel #16
0
        private void mnuDataBaseEditDataSource_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.editDataSource();
            }
        }
Beispiel #17
0
        private void mnuParametersSettings_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.setParameters();
            }
        }
Beispiel #18
0
        private void cmCtrlDelete_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.deleteObj(false);
            }
        }
Beispiel #19
0
        private void mnuViewControls_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.showControls();
            }
        }
Beispiel #20
0
        private void showToolbox()
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.showToolbox();
            }
        }
Beispiel #21
0
        private void previewReport()
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.preview();
            }
        }
Beispiel #22
0
        private void search()
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.search();
            }
        }
Beispiel #23
0
        private void mnuEditAddChart_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.addChart();
            }
        }
Beispiel #24
0
        private void tsbProperties_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.showProperties();
            }
        }
Beispiel #25
0
        private void cmSectionAddSectionLine_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.addSectionLine();
            }
        }
Beispiel #26
0
        private void mnuDataBaseSQLServerConnection_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.setSimpleConnection();
            }
        }
Beispiel #27
0
        private void cmSectionMoveGroup_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.moveGroup();
            }
        }
Beispiel #28
0
        private void mnuDataBaseConnectConfig_Click(object sender, EventArgs e)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (editor != null)
            {
                editor.editConnectionString();
            }
        }
Beispiel #29
0
 public static fSearch getSearch(cEditor editor)
 {
     if (m_fSearch == null || m_fSearch.IsDisposed)
     {
         m_fSearch = new fSearch();
     }
     m_fSearch.setHandler(editor);
     return(m_fSearch);
 }
Beispiel #30
0
        public fMain()
        {
            InitializeComponent();

            // it is the first thing we need to do
            //
            CSKernelClient.cUtil.setSepDecimal();

            cEditor editor = new cEditor(this, pnEditor, pnRule, pnReport, tbpEditor);
        }