blob: d728b7939e32d6a0babb4872a7cde804f69a9f2f (
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PPC.Common.Application;
using Tango.PPC.Common.Authentication;
using Tango.PPC.Common.Navigation;
using Tango.PPC.Common.Notifications;
using Tango.Settings;
using Tango.SharedUI;
namespace Tango.PPC.Common
{
public abstract class PPCViewModel : ViewModel
{
public IPPCApplicationManager ApplicationManager { get; private set; }
public IAuthenticationProvider AuthenticationProvider { get; private set; }
public INavigationManager NavigationManager { get; private set; }
public INotificationProvider NotificationProvider { get; private set; }
private PPCSettings _settings;
public PPCSettings Settings
{
get
{
if (_settings == null)
{
_settings = SettingsManager.Default.GetOrCreate<PPCSettings>();
}
return _settings;
}
private set { _settings = value; }
}
public PPCViewModel(IPPCApplicationManager application, IAuthenticationProvider authentication, INavigationManager navigation, INotificationProvider notification)
{
ApplicationManager = application;
AuthenticationProvider = authentication;
NavigationManager = navigation;
NotificationProvider = notification;
}
public abstract void OnApplicationStarted();
}
}
|