using StructureHelperCommon.Infrastructures.Enums; using StructureHelperCommon.Infrastructures.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StructureHelperCommon.Models.Forces { /// public class ColumnedFileProperty : IColumnedFileProperty { private IUpdateStrategy updateStrategy; /// public Guid Id { get; private set; } /// public string FilePath { get; set; } = string.Empty; /// public int SkipRowBeforeHeaderCount { get; set; } = 2; /// public int SkipRowHeaderCount { get; set; } = 1; /// public double GlobalFactor { get; set; } = 1d; /// public List ColumnProperties { get; } = new(); public ColumnedFileProperty(Guid id) { Id = id; } public ColumnedFileProperty() : this (Guid.NewGuid()) { } public object Clone() { updateStrategy ??= new ColumnedFilePropertyUpdateStrategy(); ColumnedFileProperty newItem = new(); updateStrategy.Update(newItem, this); return newItem; } } }