public void Execute(object parameter)
            {
                Console.WriteLine(currentFileName);
                List <string> currentFile = new List <string>();

                currentFile.Add(currentFileName);
                new ImportReadIn("All", currentFile, specifiedImport.mainWindow, true);
                specifiedImport.incrementNumberofFile();
                string [] splittedFileName = currentFileName.Split('\\');
                int       lastSplitIndex   = splittedFileName.Length - 1;

                specifiedImport.currentFileLabel.Content = "File: " + splittedFileName[lastSplitIndex];
                set_textboxes_value_to_zero();
            }
Beispiel #2
0
            public void Execute(object parameter)
            {
                List <string> currentFile = new List <string>();

                currentFile.Add(currentFileName);
                new ImportReadIn("Bank", currentFile, specifiedImport.mainWindow, true);
                if (SpecifiedImport.folderPath.Count < specifiedImport.getCurrentFileIndex())
                {
                    specifiedImport.incrementNumberofFile();
                    string   nextFileName     = SpecifiedImport.folderPath[specifiedImport.getCurrentFileIndex()];
                    string[] splittedFileName = nextFileName.Split('\\');
                    int      lastSplitIndex   = nextFileName.Length - 1;
                    specifiedImport.currentFileLabel.Content = "File: " + splittedFileName[lastSplitIndex];
                    set_box_values_to_zero();
                    StoredColumnChecker columnChecker = new StoredColumnChecker();
                    columnChecker.getDataTableFromSql(specifiedImport.mainWindow);
                    columnChecker.setAnalyseWorksheet(nextFileName);
                    columnChecker.setMostMatchesRow(columnChecker.findMostMatchingRow());
                    columnChecker.setSpecifiedImportPageTextBoxes();
                }
            }