diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 17:58:46 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 17:58:46 +0300 |
| commit | b8566b704e0804239bcb58dfb90b32e5334ce446 (patch) | |
| tree | be58a5f0c37690b07a48db45e9b0fc498c680b58 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters | |
| parent | b90acacb7dbef7d088d57a200cc4d71148bffd1e (diff) | |
| download | Tango-b8566b704e0804239bcb58dfb90b32e5334ce446.tar.gz Tango-b8566b704e0804239bcb58dfb90b32e5334ce446.zip | |
Implemented JobRunner on Tech Board !.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/JobProgressToPositionConverter.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/JobProgressToPositionConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/JobProgressToPositionConverter.cs index 4212c6908..93ede05c3 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/JobProgressToPositionConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/JobProgressToPositionConverter.cs @@ -4,6 +4,7 @@ using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Windows; using System.Windows.Data; using Tango.BL.Entities; @@ -15,7 +16,7 @@ namespace Tango.MachineStudio.Developer.Converters { try { - if (values.Length == 3) + if (values.Length == 3 && values[1] != DependencyProperty.UnsetValue) { double length = System.Convert.ToDouble(values[0]); double progress = System.Convert.ToDouble(values[1]); |
