diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-13 15:19:55 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-13 15:19:55 +0200 |
| commit | 2a51f05523c1397b77eca5e5188520919205638c (patch) | |
| tree | edc40c2ca201be6e881ea6746469fb5cb412e8bc /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs | |
| parent | 2c376ac3ae651dd6c6592cc4cbf72768dc97a93d (diff) | |
| download | Tango-2a51f05523c1397b77eca5e5188520919205638c.tar.gz Tango-2a51f05523c1397b77eca5e5188520919205638c.zip | |
Successfully separated Machine Studio to modules...
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs index 2d3492ba0..1f08e31ca 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModelLocator.cs @@ -3,9 +3,10 @@ using GalaSoft.MvvmLight.Ioc; using Microsoft.Practices.ServiceLocation; using System; using Tango.Logging; +using Tango.MachineStudio.Common.Notifications; +using Tango.MachineStudio.UI.Notifications; using Tango.MachineStudio.UI.SupervisingController; using Tango.MachineStudio.UI.ViewModels; -using Tango.MachineStudio.UI.ViewModels.DBViewModels; using Tango.MachineStudio.UI.Views; namespace Tango.MachineStudio.UI @@ -34,11 +35,9 @@ namespace Tango.MachineStudio.UI //// SimpleIoc.Default.Register<IDataService, DataService>(); ////} + SimpleIoc.Default.Register<INotificationProvider>(() => new DefaultNotificationProvider()); + SimpleIoc.Default.Register<MainViewVM>(); - SimpleIoc.Default.Register<MachinesViewVM>(); - SimpleIoc.Default.Register<OrganizationsViewVM>(); - SimpleIoc.Default.Register<AddressesViewVM>(); - SimpleIoc.Default.Register<UsersViewVM>(); //Register View (Supervising Controller Pattern). if (!ViewModelBase.IsInDesignModeStatic) @@ -55,37 +54,5 @@ namespace Tango.MachineStudio.UI return ServiceLocator.Current.GetInstance<MainViewVM>(); } } - - public MachinesViewVM MachinesViewVM - { - get - { - return ServiceLocator.Current.GetInstance<MachinesViewVM>(); - } - } - - public OrganizationsViewVM OrganizationsViewVM - { - get - { - return ServiceLocator.Current.GetInstance<OrganizationsViewVM>(); - } - } - - public AddressesViewVM AddressesViewVM - { - get - { - return ServiceLocator.Current.GetInstance<AddressesViewVM>(); - } - } - - public UsersViewVM UsersViewVM - { - get - { - return ServiceLocator.Current.GetInstance<UsersViewVM>(); - } - } } }
\ No newline at end of file |
