diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-16 10:14:14 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-16 10:14:14 +0200 |
| commit | d8d1128887089087578286f37561dc8942726ba4 (patch) | |
| tree | d328d815d5d49686182fec33983e6c18eda72df6 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/ViewModelLocator.cs | |
| parent | f8138b3d641d51bba4bda9056f0b1187da6bebb6 (diff) | |
| parent | ecf55f4193c0a7ab273c7e8243e446a2f2c32d51 (diff) | |
| download | Tango-d8d1128887089087578286f37561dc8942726ba4.tar.gz Tango-d8d1128887089087578286f37561dc8942726ba4.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/ViewModelLocator.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/ViewModelLocator.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/ViewModelLocator.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/ViewModelLocator.cs new file mode 100644 index 000000000..d86a0d2ab --- /dev/null +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Logging/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.Logging.ViewModels; + +namespace Tango.PPC.Logging +{ + 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>(); + } + } + } +} |
