public void ExportJobs(IEnumerable <Job> jobsCollection)
        {
            var path = FileUtils.GetFileFromSaveFileDialog(KnownFolders.GetPrintFolder(), @"Aufträge.csv");

            if (path == null)
            {
                return;
            }

            // Save the jobs to a specified filepath as a csv file
            var csvJobsList = Mapper.Map <IEnumerable <Job>, IEnumerable <CsvJob> >(jobsCollection);

            PrintHelper.SaveToCsv <JobCsvMap>(csvJobsList, path, true, ";");
        }
Esempio n. 2
0
        public void ExportForces(IEnumerable <Force> forcesCollection)
        {
            var path = FileUtils.GetFileFromSaveFileDialog(KnownFolders.GetPrintFolder(), @"Einheiten.csv");

            if (path == null)
            {
                return;
            }

            // Save the forces to a specified filepath as a csv file
            var csvForcesList = Mapper.Map <IEnumerable <Force>, IEnumerable <CsvForce> >(forcesCollection);

            PrintHelper.SaveToCsv <ForceCsvMap>(csvForcesList, path, true, ";");
        }