diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-10 19:01:05 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-10 19:01:05 +0200 |
| commit | 3fdcdac577d552bbdf6d7320c6ffb0753e810a08 (patch) | |
| tree | 55e392cea80a3539164abb1fd16c15986c92b287 /Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs | |
| parent | 3eabdee9604ad67cdbab7ee35bdfa249402f8831 (diff) | |
| download | Tango-3fdcdac577d552bbdf6d7320c6ffb0753e810a08.tar.gz Tango-3fdcdac577d552bbdf6d7320c6ffb0753e810a08.zip | |
Started working on machine designer view models.
Added NAME field to MACHINE table.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs b/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs index 6b8bc5aea..5d26a3e21 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs +++ b/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs @@ -33,17 +33,14 @@ namespace Tango.MachineDesigner.UI //// SimpleIoc.Default.Register<IDataService, DataService>(); ////} - LogManager.Log("Registering MainView View Model..."); SimpleIoc.Default.Register<MainViewVM>(); + SimpleIoc.Default.Register<MachinesViewVM>(); //Register View (Supervising Controller Pattern). if (!ViewModelBase.IsInDesignModeStatic) { LogManager.Log(String.Format("Registering Supervising Controller {0}...", nameof(IMainView))); SimpleIoc.Default.Register(() => (IMainView)MainView.Self); - - LogManager.Log(String.Format("Registering Supervising Controller {0}...", nameof(IMachinesView))); - SimpleIoc.Default.Register(() => (IMachinesView)MainView.Self); } } @@ -54,5 +51,13 @@ namespace Tango.MachineDesigner.UI return ServiceLocator.Current.GetInstance<MainViewVM>(); } } + + public MachinesViewVM MachinesViewVM + { + get + { + return ServiceLocator.Current.GetInstance<MachinesViewVM>(); + } + } } }
\ No newline at end of file |
