public void Execute() { var reportFileName = _dialogCreator.AskForFileToSave(PKSimConstants.UI.CreateReportTitle, Constants.Filter.EXCEL_SAVE_FILE_FILTER, Constants.DirectoryKey.REPORT, _workspace.Project.Name); if (reportFileName.IsNullOrEmpty()) { return; } var reportOptions = new ReportOptions { ReportFullPath = reportFileName, SheetName = _workspace.Project.Name, OpenReport = true }; _reportTask.CreateReport(_workspace.HistoryManager, reportOptions); }
public void Execute() { var projectName = Path.GetFileNameWithoutExtension(_context.CurrentProject.FilePath); if (string.IsNullOrEmpty(projectName)) { projectName = AppConstants.Undefined; } var reportFileName = _dialogCreator.AskForFileToSave(AppConstants.Captions.ExportHistory, Constants.Filter.HISTORY_FILE_FILTER, Constants.DirectoryKey.REPORT, projectName); if (reportFileName.IsNullOrEmpty()) { return; } var reportOptions = new ReportOptions { ReportFullPath = reportFileName, SheetName = projectName, OpenReport = true }; _reportTask.CreateReport(_context.HistoryManager, reportOptions); }