aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs39
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