blob: 1db63a9e478c92e3edddc920dbc0ba4715f46771 (
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.PPC.Maintenance.ViewModels;
namespace Tango.PPC.Maintenance
{
public static class ViewModelLocator
{
/// <summary>
/// Initializes a new instance of the ViewModelLocator class.
/// </summary>
static ViewModelLocator()
{
TangoIOC.Default.Register<MainViewVM>();
TangoIOC.Default.Register<MaintenanceViewVM>();
TangoIOC.Default.Register<GeneralGuideViewVM>();
}
/// <summary>
/// Gets the main view VM.
/// </summary>
public static MainViewVM MainViewVM
{
get
{
return TangoIOC.Default.GetInstance<MainViewVM>();
}
}
/// <summary>
/// Gets the maintenance view VM.
/// </summary>
public static MaintenanceViewVM MaintenanceViewVM
{
get
{
return TangoIOC.Default.GetInstance<MaintenanceViewVM>();
}
}
/// <summary>
/// Gets the general guide view VM.
/// </summary>
public static GeneralGuideViewVM GeneralGuideViewVM
{
get
{
return TangoIOC.Default.GetInstance<GeneralGuideViewVM>();
}
}
}
}
|