From 26ab24349861999cef4def86ed92da54cba2fc68 Mon Sep 17 00:00:00 2001 From: Roy Date: Tue, 30 Jan 2018 00:24:58 +0200 Subject: Added BrushStop Index... --- .../Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels') 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 a3be7a2d6..5a1b46041 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 @@ -593,6 +593,10 @@ namespace Tango.MachineStudio.Developer.ViewModels /// The dropped stop. public void OnDropBrushStop(BrushStop draggedStop, BrushStop droppedStop) { + int tmpIndex = draggedStop.StopIndex; + draggedStop.StopIndex = droppedStop.StopIndex; + droppedStop.StopIndex = tmpIndex; + SelectedSegment.BrushStops.Swap(draggedStop, droppedStop); } -- cgit v1.3.1