aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/Converters
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-17 20:21:16 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-17 20:21:16 +0300
commit0f5d23b3a4d38e5a68436acf3a96822d59249f46 (patch)
treeb5d56df08bdcfa3651dc5dd893f474d40e4a9171 /Software/Visual_Studio/Tango.SharedUI/Converters
parentc5a54597a0a02da5b3cf942fff95586a9dfe836d (diff)
downloadTango-0f5d23b3a4d38e5a68436acf3a96822d59249f46.tar.gz
Tango-0f5d23b3a4d38e5a68436acf3a96822d59249f46.zip
*1. Implement Real Progress on Machine Emulator.
*2. Add ParameterIgnore to Observable Entity validation props. *3. Block logging of similar continous job status events from embedded. (Add counter for embedded logs). *6. Make font size larger on Research module. *7. Open jobs on double click. *9. Add default sorting to job events. (NOT WORKING) *10. Add tool tips for job progress. *12. Test PPC Job Progress *13. Fix issue with inversed color conversion.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Converters')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Converters/SegmentLengthToWidthConverter.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Converters/SegmentLengthToWidthConverter.cs b/Software/Visual_Studio/Tango.SharedUI/Converters/SegmentLengthToWidthConverter.cs
index e3d5db01d..840eed44e 100644
--- a/Software/Visual_Studio/Tango.SharedUI/Converters/SegmentLengthToWidthConverter.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/Converters/SegmentLengthToWidthConverter.cs
@@ -16,18 +16,15 @@ namespace Tango.SharedUI.Converters
{
try
{
- if (values.Length == 4)
+ if (values.Length == 3)
{
- Job job = values[0] as Job;
-
- if (job != null && values[1] is double)
+ if (values[0] is double)
{
- double jobLength = System.Convert.ToDouble(values[1]);
- double elementWidth = System.Convert.ToDouble(values[2]);
- double segmentLength = System.Convert.ToDouble(values[3]);
- double totalLength = job.Length;
+ double jobLength = System.Convert.ToDouble(values[0]);
+ double elementWidth = System.Convert.ToDouble(values[1]);
+ double segmentLength = System.Convert.ToDouble(values[2]);
- double result = (segmentLength / totalLength) * elementWidth;
+ double result = (segmentLength / jobLength) * elementWidth;
return double.IsInfinity(result) ? 0d : result;
}