Beispiel #1
0
        private void lib_csv_files_SelectedIndexChanged(object sender, EventArgs e)
        {
            _reportData = new ElementDataGroup();
            lv_csv_results.Clear();
            lv_exportedParts.Clear();

            if (lib_csv_dir.SelectedItem != null)
            {
                _csvFilePath           = _csvFolderPath + @"\" + lib_csv_dir.SelectedItem + ".csv";
                lbl_csv_file_main.Text = "CSV:     " + lib_csv_dir.SelectedItem + ".csv";
            }
        }
Beispiel #2
0
        //BUTTON
        private void btn_check_csv_Click(object sender, EventArgs e)
        {
            csvFileReader    reader     = new csvFileReader(_csvFilePath, _incastClass);
            List <ArrayList> parsedData = reader.importCSV();
            List <string>    _pdfFiles  = DirectoryImport.importDirFiles(_pdfFolderPath, "*.pdf", true);
            List <string>    _dwgFiles  = DirectoryImport.importDirFiles(_dwgFolderPath, "*.dwg", true);

            _reportData = new ElementDataGroup(parsedData, _pdfFiles, _dwgFiles);
            _reportData.buildData();
            _reportData.findDrawingHandler(_drawingType);

            report_labels_update();
            report_list_update();
        }