diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-02 22:00:15 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-02 22:00:15 +0300 |
| commit | 37f64f8193684ebe99b29bf0ccef2863b69722d1 (patch) | |
| tree | 3631177a59902f78d3863b68dcd811687f13b772 /Software/Visual_Studio/PPC/Tango.PPC.UI/Converters | |
| parent | 3dcf3242705a7522617d4b5f7ca4d9b918e48ca5 (diff) | |
| download | Tango-37f64f8193684ebe99b29bf0ccef2863b69722d1.tar.gz Tango-37f64f8193684ebe99b29bf0ccef2863b69722d1.zip | |
Eureka PPC. Input brush stop content control. Weight in gram.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Converters')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LengthToWeightConverter.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LengthToWeightConverter.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LengthToWeightConverter.cs index d7e70b881..910a5238b 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LengthToWeightConverter.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LengthToWeightConverter.cs @@ -17,11 +17,11 @@ namespace Tango.PPC.UI.Converters { double length = System.Convert.ToDouble(values[0]); double coef = System.Convert.ToDouble(values[1]); - double spools = System.Convert.ToDouble(values[3]); - var weight = ((double)length * spools * coef) / (1000 * 1000);//(kg) + int spools = System.Convert.ToInt32(values[2]); + var weight = ((double)length * spools * coef) / (1000 );//(g) return weight; } - catch + catch (Exception ex) { return 0d; } |
