Checkig Iput data of crack calculator was changed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using StructureHelperCommon.Models.Calculators;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
public interface ICheckInputDataLogic : ICheckLogic
|
||||
{
|
||||
IInputData InputData { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Infrastructures.Interfaces
|
||||
{
|
||||
public interface ICheckLogic : ILogic
|
||||
{
|
||||
string CheckResult { get; }
|
||||
bool Check();
|
||||
}
|
||||
}
|
||||
@@ -33,8 +33,16 @@ namespace StructureHelperCommon.Models.Materials
|
||||
{
|
||||
GetLoaderOptions();
|
||||
IBuilderDirector director = GetMaterialDirector();
|
||||
var material = director.BuildMaterial();
|
||||
return material;
|
||||
try
|
||||
{
|
||||
var material = director.BuildMaterial();
|
||||
return material;
|
||||
}
|
||||
catch (System.Exception)
|
||||
{
|
||||
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private IBuilderDirector GetMaterialDirector()
|
||||
|
||||
@@ -30,8 +30,17 @@ namespace StructureHelperCommon.Models.Materials
|
||||
{
|
||||
GetLoaderOptions();
|
||||
IBuilderDirector director = GetMaterialDirector();
|
||||
var material = director.BuildMaterial();
|
||||
return material;
|
||||
try
|
||||
{
|
||||
var material = director.BuildMaterial();
|
||||
return material;
|
||||
}
|
||||
catch (System.Exception)
|
||||
{
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private IBuilderDirector GetMaterialDirector()
|
||||
@@ -45,7 +54,7 @@ namespace StructureHelperCommon.Models.Materials
|
||||
{
|
||||
materialOptions = new ReinforcementOptions()
|
||||
{
|
||||
DiagramType = DiagramType
|
||||
DiagramType = DiagramType,
|
||||
};
|
||||
optionLogic = new MaterialCommonOptionLogic(options);
|
||||
optionLogic.SetMaterialOptions(materialOptions);
|
||||
|
||||
Reference in New Issue
Block a user