From 47c117490f9f9fed42329ebd1374709528693d6b Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 27 Feb 2018 15:40:19 +0200 Subject: Refactored Hardware Designer DAL. --- .../Views/MainView.xaml.cs | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Views/MainView.xaml.cs') 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); } } } -- cgit v1.3.1