aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.MachineDesigner.UI/ViewModelLocator.cs13
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