blob: b1bad5dcf15591a32de9682ef6a8c1a093694186 (
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.FSE.Firmware.ViewModels;
namespace Tango.FSE.Firmware
{
public static class ViewModelLocator
{
static ViewModelLocator()
{
TangoIOC.Default.Register<MainViewVM>();
TangoIOC.Default.Register<FileSystemViewVM>();
TangoIOC.Default.Register<UpdatesViewVM>();
TangoIOC.Default.Register<LogsViewVM>();
}
public static MainViewVM MainViewVM
{
get
{
return TangoIOC.Default.GetInstance<MainViewVM>();
}
}
public static FileSystemViewVM FileSystemViewVM
{
get
{
return TangoIOC.Default.GetInstance<FileSystemViewVM>();
}
}
public static UpdatesViewVM UpdatesViewVM
{
get
{
return TangoIOC.Default.GetInstance<UpdatesViewVM>();
}
}
public static LogsViewVM LogsViewVM
{
get
{
return TangoIOC.Default.GetInstance<LogsViewVM>();
}
}
}
}
|