diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-08 14:26:17 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-08 14:26:17 +0200 |
| commit | a1432b11d087a4b2f4530504e18434225b36bf48 (patch) | |
| tree | f3cd718c99872544f3c7a69eadcd27d5aa77911c /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/ViewModelLocator.cs | |
| parent | 4cf9cd72047bbb5a1c83255721870d29bbdb03f7 (diff) | |
| download | Tango-a1432b11d087a4b2f4530504e18434225b36bf48.tar.gz Tango-a1432b11d087a4b2f4530504e18434225b36bf48.zip | |
Moved all tech work to Technician module.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/ViewModelLocator.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/ViewModelLocator.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/ViewModelLocator.cs deleted file mode 100644 index 6dcf23289..000000000 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/ViewModelLocator.cs +++ /dev/null @@ -1,33 +0,0 @@ -using GalaSoft.MvvmLight; -using GalaSoft.MvvmLight.Ioc; -using Microsoft.Practices.ServiceLocation; -using Tango.MachineStudio.Common.ViewModels; -using Tango.MachineStudio.Common.MachineTech; - -namespace Tango.MachineStudio.Common -{ - /// <summary> - /// This class contains static references to all the view models in the - /// application and provides an entry point for the bindings. - /// </summary> - public static class ViewModelLocator - { - /// <summary> - /// Initializes a new instance of the ViewModelLocator class. - /// </summary> - static ViewModelLocator() - { - ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); - - SimpleIoc.Default.Register<MachineTechViewVM>(); - } - - public static MachineTechViewVM MachineTechViewVM - { - get - { - return ServiceLocator.Current.GetInstance<MachineTechViewVM>(); - } - } - } -}
\ No newline at end of file |
