From e571f20e27c4fca6bb6efe03d6427a1f332f9830 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 27 May 2018 19:33:15 +0300 Subject: Working on panel pc. --- .../PPC/Tango.PPC.Common/PPCViewModel.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs') 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(); + } + + public abstract void OnApplicationStarted(); + } +} \ No newline at end of file -- cgit v1.3.1