private async Task exportPopulationSimulationToCsvAsync(PopulationSimulation populationSimulation, string outputFolder, string projectName) { var populationFile = CoreConstants.DefaultPopulationExportNameFor(populationSimulation.Name); var populationFileFullPath = csvPathUnder(outputFolder, populationFile, projectName); _populationExportTask.ExportToCSV(populationSimulation, populationFileFullPath); await exportSimulationResultsToCsv(populationSimulation, outputFolder, projectName); var populationPKAnalysesFile = CoreConstants.DefaultPKAnalysesExportNameFor(populationSimulation.Name); var populationPKAnalysesFullPath = csvPathUnder(outputFolder, populationPKAnalysesFile, projectName); await _simulationExportTask.ExportPKAnalysesToCSVAsync(populationSimulation, populationPKAnalysesFullPath); }
protected FileSelection SelectCSVFile() { using (var presenter = _applicationController.Start <ISelectFilePresenter>()) { return(presenter.SelectFile(PKSimConstants.UI.ExportPopulationToCSVTitle, Constants.Filter.CSV_FILE_FILTER, CoreConstants.DefaultPopulationExportNameFor(Subject.Name), Constants.DirectoryKey.POPULATION)); } }
private void exportVectorialParametersContainerToCSV <T>(T advancedParameterContainer, Func <T, DataTable> createData) where T : IAdvancedParameterContainer { using (var presenter = _applicationController.Start <ISelectFilePresenter>()) { var populationFile = presenter.SelectFile(PKSimConstants.UI.ExportPopulationToCSVTitle, Constants.Filter.CSV_FILE_FILTER, CoreConstants.DefaultPopulationExportNameFor(advancedParameterContainer.Name), Constants.DirectoryKey.POPULATION); if (populationFile == null) { return; } exportVectorialParametersContainerToCSV(advancedParameterContainer, createData, populationFile.FilePath, populationFile.Description); } }