Files
StructureHelper/StructureHelperLogics/Models/CrossSections/CrossSection.cs
2025-01-25 19:21:34 +05:00

35 lines
952 B
C#

using StructureHelperCommon.Infrastructures.Interfaces;
using StructureHelperCommon.Models.WorkPlanes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperLogics.Models.CrossSections
{
public class CrossSection : ICrossSection
{
public ICrossSectionRepository SectionRepository { get; set; } = new CrossSectionRepository();
public Guid Id { get; private set; }
public IWorkPlaneProperty WorkPlaneProperty { get; set; } = new WorkPlaneProperty(Guid.NewGuid());
public CrossSection(Guid id)
{
Id = id;
}
public CrossSection() : this(Guid.NewGuid())
{
}
public object Clone()
{
ICloneStrategy<ICrossSection> cloneStrategy = new CrossSectionCloneStrategy();
return cloneStrategy.GetClone(this);
}
}
}