Esempio n. 1
0
        public void ThreadDocx(object paramDocx)
        {
            Docx       docx       = new Docx();
            DocxThread docxThread = (DocxThread)paramDocx;

            docx.PrintToWord(docxThread.progressBar1, docxThread.fileName, docxThread.countVariant, docxThread.countTaskInVariant, docxThread.countTask, docxThread.numColumn, docxThread.checkBoxes, docxThread.datas, docxThread.answertextBoxes, docxThread.fileTask, docxThread.fileAnswer);
        }
Esempio n. 2
0
        public void CreateDocumentWord(ProgressBar progressBar1, string[] fileName, int countVariant, int countTaskInVatiant, int Task, int numColumn, List <CheckBox> checkBoxes, List <TextBox> answertextBoxes, bool fileTask, bool fileAnswer)
        {
            DocxThread docxThread = new DocxThread(progressBar1, fileName, countVariant, countTaskInVatiant, Task, numColumn, checkBoxes, TaskVariant, answertextBoxes, fileTask, fileAnswer);

            Thread myThread = new Thread(new ParameterizedThreadStart(docxThread.ThreadDocx));

            myThread.Start(docxThread);



            //docx.PrintToWord(progressBar1, fileName, countVariant, countTaskInVatiant, Task, numColumn, checkBoxes, TaskVariant, answertextBoxes, fileTask, fileAnswer);
        }