22 lines
794 B
C#
22 lines
794 B
C#
using StructureHelperCommon.Infrastructures.Interfaces;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StructureHelperCommon.Models.Materials.Libraries
|
|
{
|
|
internal class MaterialPartialFactorUpdateStrategy : IUpdateStrategy<IMaterialPartialFactor>
|
|
{
|
|
public void Update(IMaterialPartialFactor targetObject, IMaterialPartialFactor sourceObject)
|
|
{
|
|
if (ReferenceEquals(targetObject, sourceObject)) { return; }
|
|
targetObject.LimitState = sourceObject.LimitState;
|
|
targetObject.StressState = sourceObject.StressState;
|
|
targetObject.CalcTerm = sourceObject.CalcTerm;
|
|
targetObject.FactorValue = sourceObject.FactorValue;
|
|
}
|
|
}
|
|
}
|