Update strategy were changed

This commit is contained in:
Evgeny Redikultsev
2023-07-23 21:10:33 +05:00
parent 44ca05d181
commit ac079eb612
29 changed files with 39 additions and 11 deletions

View File

@@ -11,6 +11,7 @@ namespace StructureHelperCommon.Models.Shapes
{
public void Update(IRectangleShape targetObject, IRectangleShape sourceObject)
{
if (ReferenceEquals(targetObject, sourceObject)) { return; }
targetObject.Width = sourceObject.Width;
targetObject.Height = sourceObject.Height;
targetObject.Angle = sourceObject.Angle;