diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-27 15:40:19 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-27 15:40:19 +0200 |
| commit | 47c117490f9f9fed42329ebd1374709528693d6b (patch) | |
| tree | 5c50f9acf1f9721d3db8cbecbdb5df89e6cc800e /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs | |
| parent | 7d61c30b400b62069d1e69893ebe196412b2df2b (diff) | |
| download | Tango-47c117490f9f9fed42329ebd1374709528693d6b.tar.gz Tango-47c117490f9f9fed42329ebd1374709528693d6b.zip | |
Refactored Hardware Designer DAL.
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 | 24 |
1 files changed, 12 insertions, 12 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 d18a8ac71..0a3c06344 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 @@ -43,41 +43,41 @@ namespace Tango.MachineStudio.HardwareDesigner.Views private void OnMotorsDrop(object sender, DropEventArgs e) { - if (e.Draggable.DataContext is MotorType) + if (e.Draggable.DataContext is HardwareMotorType) { - _vm.OnMotorDrop(e.Draggable.DataContext as MotorType); + _vm.OnMotorDrop(e.Draggable.DataContext as HardwareMotorType); } } private void OnDancerDrop(object sender, DropEventArgs e) { - if (e.Draggable.DataContext is DancerType) + if (e.Draggable.DataContext is HardwareDancerType) { - _vm.OnDropDancer(e.Draggable.DataContext as DancerType); + _vm.OnDropDancer(e.Draggable.DataContext as HardwareDancerType); } } private void OnPidControlDrop(object sender, DropEventArgs e) { - if (e.Draggable.DataContext is PidControl) + if (e.Draggable.DataContext is HardwarePidControlType) { - _vm.OnDropPidControl(e.Draggable.DataContext as PidControl); + _vm.OnDropPidControl(e.Draggable.DataContext as HardwarePidControlType); } } private void OnTrashDrop(object sender, DropEventArgs e) { - if (e.Draggable.DataContext is MotorType) + if (e.Draggable.DataContext is HardwareMotor) { - _vm.OnRemoveMotor(e.Draggable.DataContext as MotorType); + _vm.OnRemoveMotor(e.Draggable.DataContext as HardwareMotor); } - else if (e.Draggable.DataContext is DancerType) + else if (e.Draggable.DataContext is HardwareDancer) { - _vm.OnRemoveDancer(e.Draggable.DataContext as DancerType); + _vm.OnRemoveDancer(e.Draggable.DataContext as HardwareDancer); } - else if (e.Draggable.DataContext is PidControl) + else if (e.Draggable.DataContext is HardwarePidControl) { - _vm.OnRemovePidControl(e.Draggable.DataContext as PidControl); + _vm.OnRemovePidControl(e.Draggable.DataContext as HardwarePidControl); } } } |
