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. --- .../Tango.MachineStudio.DB/ViewModelLocator.cs | 37 ++++++---------------- 1 file changed, 9 insertions(+), 28 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs index 0889be54e..feb9b7de5 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs @@ -63,12 +63,9 @@ namespace Tango.MachineStudio.DB SimpleIoc.Default.Register(); SimpleIoc.Default.Register(); - SimpleIoc.Default.Register(); - SimpleIoc.Default.Register(); - SimpleIoc.Default.Register(); - SimpleIoc.Default.Register(); - - SimpleIoc.Default.Register(); + SimpleIoc.Default.Register(); + SimpleIoc.Default.Register(); + SimpleIoc.Default.Register(); } public static MainViewVM MainViewVM @@ -375,43 +372,27 @@ namespace Tango.MachineStudio.DB } } - public static MotorTypesViewVM MotorTypesViewVM - { - get - { - return ServiceLocator.Current.GetInstance(); - } - } - - public static DancerTypesViewVM DancerTypesViewVM - { - get - { - return ServiceLocator.Current.GetInstance(); - } - } - - public static HardwareVersionsDancerTypeViewVM HardwareVersionsDancerTypeViewVM + public static HardwareMotorTypesViewVM HardwareMotorTypesViewVM { get { - return ServiceLocator.Current.GetInstance(); + return ServiceLocator.Current.GetInstance(); } } - public static HardwareVersionsMotorTypesViewVM HardwareVersionsMotorTypesViewVM + public static HardwareDancerTypesViewVM HardwareDancerTypesViewVM { get { - return ServiceLocator.Current.GetInstance(); + return ServiceLocator.Current.GetInstance(); } } - public static PidControlsViewVM PidControlsViewVM + public static HardwarePidControlTypesViewVM HardwarePidControlTypesViewVM { get { - return ServiceLocator.Current.GetInstance(); + return ServiceLocator.Current.GetInstance(); } } } -- cgit v1.3.1