Ver código fonte

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

Kenric Nugteren 2 anos atrás
pai
commit
da1f1080ed

+ 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)
         {
         {