浏览代码

Added function to re-calculate unit size and value on dimensions

Kenric Nugteren 1 年之前
父节点
当前提交
da1f1080ed
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      prs.classes/EnclosedEntities/Dimensions/Dimensions.cs

+ 4 - 0
prs.classes/EnclosedEntities/Dimensions/Dimensions.cs

@@ -156,6 +156,10 @@ namespace Comal.Classes
             }
             }
         }
         }
 
 
+        public void CalculateValueAndUnitSize()
+        {
+            Calculate(Quantity, Length, Width, Height, Weight, Unit.Formula, Unit.Format);
+        }
 
 
         private void Calculate(object? quantity, object? length, object? width, object? height, object? weight, string? formula, string? format)
         private void Calculate(object? quantity, object? length, object? width, object? height, object? weight, string? formula, string? format)
         {
         {