Example #1
0
        public void ParsingComplete(IEnumerable <DeviceData> deviceDatas)
        {
            // Check if any files were parsed
            if (deviceDatas.Count() == 0)
            {
                MessageBox.Show("There where no files that parsed or parsed correctly. No export file was created.", "Parsing Failed");
                LoadingSpinner.StopText();
                return;
            }

            // Export to CSV file on desktop
            string filePath = Path.Combine(directoryOfFiles, Path.ChangeExtension(DeviceFileParser.FileName, ".csv"));

            CSVExporter.ExportFiles(deviceDatas, filePath);

            MessageBox.Show("Parseing complete. An excel spreadsheet and zipped folder with files used can be found in the same directory with the name of the device.", "Parsing Complete");

            LoadingSpinner.StopText();
        }