aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-27 15:40:19 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-27 15:40:19 +0200
commit47c117490f9f9fed42329ebd1374709528693d6b (patch)
tree5c50f9acf1f9721d3db8cbecbdb5df89e6cc800e /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs
parent7d61c30b400b62069d1e69893ebe196412b2df2b (diff)
downloadTango-47c117490f9f9fed42329ebd1374709528693d6b.tar.gz
Tango-47c117490f9f9fed42329ebd1374709528693d6b.zip
Refactored Hardware Designer DAL.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModelLocator.cs37
1 files changed, 9 insertions, 28 deletions
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<ProcessParametersTablesViewVM>();
SimpleIoc.Default.Register<ProcessParametersTablesGroupsViewVM>();
- SimpleIoc.Default.Register<MotorTypesViewVM>();
- SimpleIoc.Default.Register<DancerTypesViewVM>();
- SimpleIoc.Default.Register<HardwareVersionsDancerTypeViewVM>();
- SimpleIoc.Default.Register<HardwareVersionsMotorTypesViewVM>();
-
- SimpleIoc.Default.Register<PidControlsViewVM>();
+ SimpleIoc.Default.Register<HardwareMotorTypesViewVM>();
+ SimpleIoc.Default.Register<HardwareDancerTypesViewVM>();
+ SimpleIoc.Default.Register<HardwarePidControlTypesViewVM>();
}
public static MainViewVM MainViewVM
@@ -375,43 +372,27 @@ namespace Tango.MachineStudio.DB
}
}
- public static MotorTypesViewVM MotorTypesViewVM
- {
- get
- {
- return ServiceLocator.Current.GetInstance<MotorTypesViewVM>();
- }
- }
-
- public static DancerTypesViewVM DancerTypesViewVM
- {
- get
- {
- return ServiceLocator.Current.GetInstance<DancerTypesViewVM>();
- }
- }
-
- public static HardwareVersionsDancerTypeViewVM HardwareVersionsDancerTypeViewVM
+ public static HardwareMotorTypesViewVM HardwareMotorTypesViewVM
{
get
{
- return ServiceLocator.Current.GetInstance<HardwareVersionsDancerTypeViewVM>();
+ return ServiceLocator.Current.GetInstance<HardwareMotorTypesViewVM>();
}
}
- public static HardwareVersionsMotorTypesViewVM HardwareVersionsMotorTypesViewVM
+ public static HardwareDancerTypesViewVM HardwareDancerTypesViewVM
{
get
{
- return ServiceLocator.Current.GetInstance<HardwareVersionsMotorTypesViewVM>();
+ return ServiceLocator.Current.GetInstance<HardwareDancerTypesViewVM>();
}
}
- public static PidControlsViewVM PidControlsViewVM
+ public static HardwarePidControlTypesViewVM HardwarePidControlTypesViewVM
{
get
{
- return ServiceLocator.Current.GetInstance<PidControlsViewVM>();
+ return ServiceLocator.Current.GetInstance<HardwarePidControlTypesViewVM>();
}
}
}