From 0f5d23b3a4d38e5a68436acf3a96822d59249f46 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 17 Jul 2018 20:21:16 +0300 Subject: *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. --- .../Converters/SegmentLengthToWidthConverter.cs | 17 +- .../ViewModels/MainViewVM.cs | 6 +- .../Views/JobView.xaml | 34 ++-- .../Views/MachineJobSelectionView.xaml | 2 +- .../Views/MachineJobSelectionView.xaml.cs | 22 +++ .../Views/MainView.xaml | 180 ++++++++++++++++++++- .../Views/RunningJobView.xaml | 2 +- 7 files changed, 231 insertions(+), 32 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentLengthToWidthConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentLengthToWidthConverter.cs index 6157bf5fd..31208a4f4 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentLengthToWidthConverter.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/SegmentLengthToWidthConverter.cs @@ -16,18 +16,17 @@ namespace Tango.MachineStudio.Developer.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 / jobLength) * elementWidth; - return (segmentLength / totalLength) * elementWidth; + return double.IsInfinity(result) ? 0d : result; } else { diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs index ab74fcca8..83ebde0e5 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs @@ -700,11 +700,15 @@ namespace Tango.MachineStudio.Developer.ViewModels _colorConversionThread.Start(); } + #endregion + + #region Color Conversion + private void ColorConversionThreadMethod() { while (true) { - if (IsVisible && ActiveJob != null) + if (IsVisible && ActiveJob != null && ActiveJob.Segments != null) { var stops = ActiveJob.Segments.SelectMany(x => x.BrushStops); diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml index e350f966b..cfa6462e7 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml @@ -32,6 +32,9 @@ d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}"> + + 21 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + @@ -197,7 +367,7 @@ - + x @@ -211,7 +381,7 @@ - + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/RunningJobView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/RunningJobView.xaml index 94570196f..dd2e541f5 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/RunningJobView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/RunningJobView.xaml @@ -97,7 +97,7 @@ - + -- cgit v1.3.1