From 941679fac898ab6c488674f611e157d5094a8c83 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 23 Dec 2020 23:06:51 +0200 Subject: Fixed issue with machine studio job view performance. Added support for cct caching on RmlBuilder. --- .../Views/JobView.xaml | 74 +--------------------- .../Views/JobView.xaml.cs | 46 +++++++------- 2 files changed, 26 insertions(+), 94 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views') 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 32b7ccd86..395809c6f 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 @@ -27,6 +27,7 @@ xmlns:shapes="clr-namespace:Tango.SharedUI.Shapes;assembly=Tango.SharedUI" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Tango.MachineStudio.Developer.Views" + xmlns:localControls="clr-namespace:Tango.MachineStudio.Developer.Controls" mc:Ignorable="d" d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}" x:Name="control"> @@ -1320,78 +1321,9 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - x - - - - - - - - - - - + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs index 94c1ed802..6e9c62e74 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs @@ -64,29 +64,29 @@ namespace Tango.MachineStudio.Developer.Views { if (_vm != null && _vm.ActiveJob != null) { - List segments = new List(); - foreach (var s in _vm.ActiveJob.OrderedSegments) - { - segments.Add(s); - - if (_vm.ActiveJob.EnableInterSegment && _vm.ActiveJob.OrderedSegments.IndexOf(s) != _vm.ActiveJob.OrderedSegments.Count - 1) - { - segments.Add(new Segment() - { - Length = _vm.ActiveJob.InterSegmentLength, - BrushStops = new SynchronizedObservableCollection() - { - new BrushStop() - { - ColorSpace = new ColorSpace(), - Color = Colors.White, - } - }, - }); - } - } - - jobBrushList.ItemsSource = segments; + //List segments = new List(); + //foreach (var s in _vm.ActiveJob.OrderedSegments) + //{ + // segments.Add(s); + + // if (_vm.ActiveJob.EnableInterSegment && _vm.ActiveJob.OrderedSegments.IndexOf(s) != _vm.ActiveJob.OrderedSegments.Count - 1) + // { + // segments.Add(new Segment() + // { + // Length = _vm.ActiveJob.InterSegmentLength, + // BrushStops = new SynchronizedObservableCollection() + // { + // new BrushStop() + // { + // ColorSpace = new ColorSpace(), + // Color = Colors.White, + // } + // }, + // }); + // } + //} + + //jobBrushList.ItemsSource = segments; UpdateGradientBrushDisplay(); } } -- cgit v1.3.1