protected override void PerformExecute() { var currentProject = _projectRetriever.CurrentProject; var projectName = currentProject.Name; if (string.IsNullOrEmpty(projectName)) { projectName = AppConstants.Undefined; } var defaultFileName = AppConstants.DefaultFileNameForModelPartsExport(projectName, Subject.Name); var excelFileName = _dialogCreator.AskForFileToSave(AppConstants.Captions.ExportModelAsTables, Constants.Filter.EXCEL_SAVE_FILE_FILTER, Constants.DirectoryKey.MODEL_PART, defaultFileName); if (excelFileName.IsNullOrEmpty()) { return; } _modelPartsToExcelExporterTask.ExportModelPartsToExcelFile(excelFileName, Subject, openExcel: true); }