blob: ae4678e603abb63f5db6e280293a1748dc55304b (
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
|
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>();
}
/// <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>();
}
}
}
}
|