Esempio n. 1
0
        private void printForTeachers()
        {
            ArrayList listForPrint = new ArrayList();

            foreach (TreeNode tn in _treeView1.Nodes)
            {
                if (tn.Checked)
                {
                    listForPrint.Add((Teacher)tn.Tag);
                }
            }

            if (listForPrint.Count > 0)
            {
                ArrayList pdfReportDataTablesList = ModelOperations.getPdfSharpReportDataTablesList(listForPrint, 2);
                PdfCreator.createPdfDocument(pdfReportDataTablesList);
            }
        }
Esempio n. 2
0
        private void printForEduPrograms()
        {
            ArrayList listForPrint = new ArrayList();

            foreach (TreeNode tn in _treeView1.Nodes)
            {
                if (tn.Nodes.Count > 0)
                {
                    foreach (TreeNode tnSub in tn.Nodes)
                    {
                        if (tnSub.Checked)
                        {
                            listForPrint.Add((EduProgram)tnSub.Tag);
                        }
                    }
                }
            }

            if (listForPrint.Count > 0)
            {
                ArrayList pdfReportDataTablesList = ModelOperations.getPdfSharpReportDataTablesList(listForPrint, 1);
                PdfCreator.createPdfDocument(pdfReportDataTablesList);
            }
        }