Add trace crack result
This commit is contained in:
@@ -9,8 +9,6 @@ namespace StructureHelperLogics.Models.CrossSections
|
||||
{
|
||||
public class CrossSection : ICrossSection
|
||||
{
|
||||
private ICloneStrategy<ICrossSection> cloneStrategy;
|
||||
private IUpdateStrategy<ICrossSection> updateStrategy = new CrossSectionUpdateStrategy();
|
||||
public ICrossSectionRepository SectionRepository { get; set; } = new CrossSectionRepository();
|
||||
|
||||
public Guid Id { get; private set; }
|
||||
@@ -27,7 +25,7 @@ namespace StructureHelperLogics.Models.CrossSections
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
cloneStrategy = new CrossSectionCloneStrategy();
|
||||
ICloneStrategy<ICrossSection> cloneStrategy = new CrossSectionCloneStrategy();
|
||||
return cloneStrategy.GetClone(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace StructureHelperLogics.Models.CrossSections
|
||||
|
||||
public ICrossSection GetClone(ICrossSection sourceObject)
|
||||
{
|
||||
var project = ProgramSetting.CurrentProject;
|
||||
ICrossSectionRepository newRepository = repositoryCloneStrategy.GetClone(sourceObject.SectionRepository);
|
||||
targetObject = new()
|
||||
{
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace StructureHelperLogics.Models.CrossSections
|
||||
|
||||
public ICrossSectionRepository GetClone(ICrossSectionRepository sourceObject)
|
||||
{
|
||||
var project = ProgramSetting.CurrentProject;
|
||||
targetRepository = new();
|
||||
forcesUpdateStrategy.Update(targetRepository, sourceObject);
|
||||
materialsUpdateStrategy.Update(targetRepository, sourceObject);
|
||||
|
||||
Reference in New Issue
Block a user