Browse Source

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

Kenric Nugteren 1 year ago
parent
commit
da1f1080ed
1 changed files with 4 additions and 0 deletions
  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)
         {
         {