diff options
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs index b06d3bd27..d18a8ac71 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs @@ -57,6 +57,14 @@ namespace Tango.MachineStudio.HardwareDesigner.Views } } + private void OnPidControlDrop(object sender, DropEventArgs e) + { + if (e.Draggable.DataContext is PidControl) + { + _vm.OnDropPidControl(e.Draggable.DataContext as PidControl); + } + } + private void OnTrashDrop(object sender, DropEventArgs e) { if (e.Draggable.DataContext is MotorType) @@ -67,6 +75,10 @@ namespace Tango.MachineStudio.HardwareDesigner.Views { _vm.OnRemoveDancer(e.Draggable.DataContext as DancerType); } + else if (e.Draggable.DataContext is PidControl) + { + _vm.OnRemovePidControl(e.Draggable.DataContext as PidControl); + } } } } |
