aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/ViewModelLocator.cs
blob: 5298cf0967baf50d13646ad8595118ad2e21112b (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.PPC.Jobs.Dialogs;
using Tango.PPC.Jobs.ViewModels;

namespace Tango.PPC.Jobs
{
    public static class ViewModelLocator
    {
        /// <summary>
        /// Initializes a new instance of the ViewModelLocator class.
        /// </summary>
        static ViewModelLocator()
        {
            TangoIOC.Default.Register<MainViewVM>();
            TangoIOC.Default.Register<JobsViewVM>();
            TangoIOC.Default.Register<JobSummeryViewVM>();
            TangoIOC.Default.Register<JobViewVM>();
            TangoIOC.Default.Register<TwineCatalogViewVM>();
            TangoIOC.Default.Register<JobProgressViewVM>();
            TangoIOC.Default.Register<ColorSelectionViewVM>();
        }

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

        /// <summary>
        /// Gets the jobs list VM.
        /// </summary>
        public static JobsViewVM JobsViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<JobsViewVM>();
            }
        }

        /// <summary>
        /// Gets the job summery VM.
        /// </summary>
        public static JobSummeryViewVM JobSummeryViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<JobSummeryViewVM>();
            }
        }

        /// <summary>
        /// Gets the job details VM.
        /// </summary>
        public static JobViewVM JobViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<JobViewVM>();
            }
        }

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

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


        /// <summary>
        /// Gets the twine catalog view VM.
        /// </summary>
        public static ColorSelectionViewVM ColorSelectionToolViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<ColorSelectionViewVM>();
            }
        }
    }
}