diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-12-09 15:40:36 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-12-09 15:40:36 +0200 |
| commit | 87f3462d4b9498df5f6deeca70ab8340e386574c (patch) | |
| tree | bf58df12413a3d6a324c604eeaf8b6b85de78899 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs | |
| parent | 889e372e720f096f3142cb6a5200361883a2c7be (diff) | |
| download | Tango-87f3462d4b9498df5f6deeca70ab8340e386574c.tar.gz Tango-87f3462d4b9498df5f6deeca70ab8340e386574c.zip | |
Fixed some bugs.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs index 1966d88f6..07c5f77ed 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs @@ -177,7 +177,7 @@ namespace Tango.PPC.UI.ViewModels get { return _currentBrushStop; } set { - // if (_currentBrushStop != value) + if (_currentBrushStop != value) { _currentBrushStop = value; @@ -691,14 +691,7 @@ namespace Tango.PPC.UI.ViewModels { if (_runningJobStatus.CurrentSegment.IsInterSegment) { - var brush = _runningJobStatus.CurrentSegment.BrushStops.FirstOrDefault(); - if (brush != null) - { - brush = brush.CloneBrush(); - } - - CurrentBrushStop = brush; - + CurrentBrushStop = _runningJobStatus.CurrentSegment.BrushStops.FirstOrDefault(); JobBrushStop = null; } else @@ -726,7 +719,7 @@ namespace Tango.PPC.UI.ViewModels JobBrushStop = _handler.JobTicket.Segments[Job.OrderedSegments.IndexOf(segment)].BrushStops.First(); } } - CurrentBrushStop = RunningJobStatus.CurrentSegment.FirstBrushStop.CloneBrush(); + CurrentBrushStop = RunningJobStatus.CurrentSegment.FirstBrushStop; } } } |
