Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Threading.Tasks;
|
---|
5 | using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Clients.Hive.WebJobManager.Services
|
---|
8 | {
|
---|
9 | public class LoginViewModelService : ILoginViewModelService
|
---|
10 | {
|
---|
11 | private static LoginViewModelService instance = null;
|
---|
12 | private static LoginViewModel vm = null;
|
---|
13 | public static ILoginViewModelService Instance
|
---|
14 | {
|
---|
15 | get
|
---|
16 | {
|
---|
17 | if (instance == null)
|
---|
18 | {
|
---|
19 | instance = new LoginViewModelService();
|
---|
20 | }
|
---|
21 | return instance;
|
---|
22 | }
|
---|
23 | }
|
---|
24 |
|
---|
25 |
|
---|
26 | public LoginViewModel GetLoginViewModel()
|
---|
27 | {
|
---|
28 | if(vm == null)
|
---|
29 | {
|
---|
30 | vm = new LoginViewModel();
|
---|
31 | }
|
---|
32 | return vm;
|
---|
33 | }
|
---|
34 |
|
---|
35 | public void destroy()
|
---|
36 | {
|
---|
37 | instance = null;
|
---|
38 | vm = null;
|
---|
39 | }
|
---|
40 | }
|
---|
41 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.