Add import of polygon from dxf
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using StructureHelper.Infrastructure;
|
||||
using StructureHelper.Services.Exports;
|
||||
using StructureHelperCommon.Services.Exports.Factories;
|
||||
using StructureHelperLogics.NdmCalculations.Analyses;
|
||||
using StructureHelperLogics.NdmCalculations.Cracking;
|
||||
using System.Collections.Generic;
|
||||
@@ -53,11 +54,7 @@ namespace StructureHelper.Windows.CalculationWindows.CalculatorsViews
|
||||
public ICommand ExportToCSVCommand => exportToCSVCommand ??= new RelayCommand(o => { ExportToCSV(); });
|
||||
private void ExportToCSV()
|
||||
{
|
||||
var inputData = new ExportToFileInputData
|
||||
{
|
||||
Filter = "csv |*.csv",
|
||||
Title = "Save in *.csv File"
|
||||
};
|
||||
var inputData = FileInputDataFactory.GetFileIOInputData(FileInputDataType.Csv);
|
||||
var logic = new ExportCrackResultToCSVLogic(resultModel);
|
||||
var exportService = new ExportToFileService(inputData, logic);
|
||||
exportService.Export();
|
||||
|
||||
@@ -18,6 +18,8 @@ using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using StructureHelperCommon.Infrastructures.Settings;
|
||||
using StructureHelperCommon.Models.Forces;
|
||||
using StructureHelperCommon.Models.Shapes;
|
||||
using StructureHelperCommon.Services.Exports;
|
||||
using StructureHelperCommon.Services.Exports.Factories;
|
||||
using StructureHelperCommon.Services.Forces;
|
||||
using StructureHelperLogics.NdmCalculations.Analyses;
|
||||
using StructureHelperLogics.NdmCalculations.Analyses.ByForces;
|
||||
@@ -134,13 +136,8 @@ namespace StructureHelper.Windows.CalculationWindows.CalculatorsViews.ForceCalcu
|
||||
public ICommand ExportToCSVCommand => exportToCSVCommand ??= new RelayCommand(o => { ExportToCSV();});
|
||||
private void ExportToCSV()
|
||||
{
|
||||
var inputData = new ExportToFileInputData
|
||||
{
|
||||
Filter = "csv |*.csv",
|
||||
Title = "Save in *.csv File"
|
||||
};
|
||||
var logic = new ExportForcesResultToCSVLogic(resultModel);
|
||||
var exportService = new ExportToFileService(inputData, logic);
|
||||
var exportService = new ExportToFileService(FileInputDataFactory.GetFileIOInputData(FileInputDataType.Csv), logic);
|
||||
exportService.Export();
|
||||
}
|
||||
public ICommand ShowGraphsCommand
|
||||
|
||||
Reference in New Issue
Block a user