aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/ViewModelLocator.cs
blob: 9a8b63c91241c72c29a97db2134dec84131a648e (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.PPC.Technician.ViewModels;

namespace Tango.PPC.Technician
{
    public static class ViewModelLocator
    {
        /// <summary>
        /// Initializes a new instance of the ViewModelLocator class.
        /// </summary>
        static ViewModelLocator()
        {
            TangoIOC.Default.Register<MainViewVM>();
            TangoIOC.Default.Register<LoggingViewVM>();
            TangoIOC.Default.Register<CatalogViewVM>();
            TangoIOC.Default.Register<DispensersViewVM>();
            TangoIOC.Default.Register<SystemViewVM>();
            TangoIOC.Default.Register<PackagesViewVM>();
            TangoIOC.Default.Register<UpdatesViewVM>();
            TangoIOC.Default.Register<RemoteConnectionsViewVM>();
        }

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

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

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

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

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

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

        /// <summary>
        /// Gets the synchronization view vm.
        /// </summary>
        public static UpdatesViewVM UpdatesViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<UpdatesViewVM>();
            }
        }

        /// <summary>
        /// Gets the remote connections view vm.
        /// </summary>
        public static RemoteConnectionsViewVM RemoteConnectionsViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<RemoteConnectionsViewVM>();
            }
        }
    }
}