diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-27 12:43:31 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-27 12:43:31 +0200 |
| commit | e2f911073fbf4ca14a2cd9e1c04592888ad9de1a (patch) | |
| tree | 76297a0e885e032c797073b93a0f8b322ac91ea2 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModelLocator.cs | |
| parent | a390716124242c6c064c413cc8dfeb65cdf05cab (diff) | |
| download | Tango-e2f911073fbf4ca14a2cd9e1c04592888ad9de1a.tar.gz Tango-e2f911073fbf4ca14a2cd9e1c04592888ad9de1a.zip | |
Added PPC Events Module.
Added generic RunPPC permission to db.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModelLocator.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModelLocator.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModelLocator.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/ViewModelLocator.cs new file mode 100644 index 000000000..30ba09623 --- /dev/null +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Events/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.Events.ViewModels; + +namespace Tango.PPC.Events +{ + public static class ViewModelLocator + { + /// <summary> + /// Initializes a new instance of the ViewModelLocator class. + /// </summary> + static ViewModelLocator() + { + TangoIOC.Default.Register<MainViewVM>(); + } + + /// <summary> + /// Gets the main view VM. + /// </summary> + public static MainViewVM MainViewVM + { + get + { + return TangoIOC.Default.GetInstance<MainViewVM>(); + } + } + } +} |
