diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-05-28 10:31:15 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-05-28 10:31:15 +0300 |
| commit | 0159af4cc40ef8ba9c89516ced41ce69322c6bf7 (patch) | |
| tree | 5c7931aa8d18a2e46eea96452baa5dbecf7e9368 /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | |
| parent | 2843ce67c6ae76e1dd02d7c7cd1f611ca893f46f (diff) | |
| parent | f7424796d093009adc95df6cbb2d54d6bce57592 (diff) | |
| download | Tango-0159af4cc40ef8ba9c89516ced41ce69322c6bf7.tar.gz Tango-0159af4cc40ef8ba9c89516ced41ce69322c6bf7.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs new file mode 100644 index 000000000..e5f13e394 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs @@ -0,0 +1,39 @@ +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; } + + public PPCSettings Settings { get; private set; } + + public PPCViewModel(IPPCApplicationManager application, IAuthenticationProvider authentication, INavigationManager navigation, INotificationProvider notification) + { + ApplicationManager = application; + AuthenticationProvider = authentication; + NavigationManager = navigation; + NotificationProvider = notification; + + Settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); + } + + public abstract void OnApplicationStarted(); + } +}
\ No newline at end of file |
