From aeebb8d47e1d78b50d9ae5afd9df6eaf9765ed87 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 8 Jan 2019 17:59:31 +0200 Subject: Started working on power module... --- .../Modules/Tango.PPC.Power/ViewModelLocator.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Modules/Tango.PPC.Power/ViewModelLocator.cs (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Power/ViewModelLocator.cs') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Power/ViewModelLocator.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Power/ViewModelLocator.cs new file mode 100644 index 000000000..9dfe88cce --- /dev/null +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Power/ViewModelLocator.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core.DI; +using Tango.PPC.Power.ViewModels; + +namespace Tango.PPC.Power +{ + public static class ViewModelLocator + { + /// + /// Initializes a new instance of the ViewModelLocator class. + /// + static ViewModelLocator() + { + TangoIOC.Default.Register(); + } + + /// + /// Gets the main view VM. + /// + public static MainViewVM MainViewVM + { + get + { + return TangoIOC.Default.GetInstance(); + } + } + } +} -- cgit v1.3.1