diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-01-30 00:24:58 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-01-30 00:24:58 +0200 |
| commit | 26ab24349861999cef4def86ed92da54cba2fc68 (patch) | |
| tree | 16374bec331864894eb75c03e76fa4f80c356f73 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs | |
| parent | 5cda8b0a3ab579dd6f33b1cb19a1d295dc661d28 (diff) | |
| download | Tango-26ab24349861999cef4def86ed92da54cba2fc68.tar.gz Tango-26ab24349861999cef4def86ed92da54cba2fc68.zip | |
Added BrushStop Index...
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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 /// <param name="droppedStop">The dropped stop.</param> public void OnDropBrushStop(BrushStop draggedStop, BrushStop droppedStop) { + int tmpIndex = draggedStop.StopIndex; + draggedStop.StopIndex = droppedStop.StopIndex; + droppedStop.StopIndex = tmpIndex; + SelectedSegment.BrushStops.Swap(draggedStop, droppedStop); } |
