aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModelLocator.cs
blob: 054310e9951caa681be7c8fcdef888cef3e4b590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.PPC.Browser.ViewModels;

namespace Tango.PPC.Browser
{
    public static class ViewModelLocator
    {
        /// <summary>
        /// Initializes a new instance of the ViewModelLocator class.
        /// </summary>
        static ViewModelLocator()
        {
            TangoIOC.Default.Register<BrowserViewVM>();
        }

        /// <summary>
        /// Gets the main view VM.
        /// </summary>
        public static BrowserViewVM BrowserViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<BrowserViewVM>();
            }
        }
    }
}