Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/LoginViewModelService.cs @ 13656

Last change on this file since 13656 was 13656, checked in by ascheibe, 8 years ago

#2582 created branch for Hive Web Job Manager

File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Threading.Tasks;
5using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
6
7namespace 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.