aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-12-30 18:11:26 +0200
committerAvi Levkovich <avi@twine-s.com>2020-12-30 18:11:26 +0200
commit71e6a3ec2197eba8b5e1b295914653426064f745 (patch)
treec97ef7e44c7c41a5d31e48120bc5e5770b35ac48 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs
parent325242bcd9ccbc97bb14b4ca91d01fc7bd999739 (diff)
parente00d02878767964604cd02fb98c58be6bc3a02af (diff)
downloadTango-71e6a3ec2197eba8b5e1b295914653426064f745.tar.gz
Tango-71e6a3ec2197eba8b5e1b295914653426064f745.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/JobView.xaml.cs42
1 files changed, 21 insertions, 21 deletions
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 6e9c62e74..94c1ed802 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<Segment> segments = new List<Segment>();
- //foreach (var s in _vm.ActiveJob.OrderedSegments)
- //{
- // segments.Add(s);
+ List<Segment> segments = new List<Segment>();
+ 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<BrushStop>()
- // {
- // new BrushStop()
- // {
- // ColorSpace = new ColorSpace(),
- // Color = Colors.White,
- // }
- // },
- // });
- // }
- //}
+ 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<BrushStop>()
+ {
+ new BrushStop()
+ {
+ ColorSpace = new ColorSpace(),
+ Color = Colors.White,
+ }
+ },
+ });
+ }
+ }
- //jobBrushList.ItemsSource = segments;
+ jobBrushList.ItemsSource = segments;
UpdateGradientBrushDisplay();
}
}