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.cs20
1 files changed, 11 insertions, 9 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs
index 58ad2fbed..d9d7097e0 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using Tango.Core.DI;
using Tango.PPC.Common.Application;
using Tango.PPC.Common.Authentication;
using Tango.PPC.Common.Navigation;
@@ -14,13 +15,17 @@ namespace Tango.PPC.Common
{
public abstract class PPCViewModel : ViewModel
{
- public IPPCApplicationManager ApplicationManager { get; private set; }
+ [TangoInject]
+ public IPPCApplicationManager ApplicationManager { get; set; }
- public IAuthenticationProvider AuthenticationProvider { get; private set; }
+ [TangoInject]
+ public IAuthenticationProvider AuthenticationProvider { get; set; }
- public INavigationManager NavigationManager { get; private set; }
+ [TangoInject]
+ public INavigationManager NavigationManager { get; set; }
- public INotificationProvider NotificationProvider { get; private set; }
+ [TangoInject]
+ public INotificationProvider NotificationProvider { get; set; }
private PPCSettings _settings;
public PPCSettings Settings
@@ -37,12 +42,9 @@ namespace Tango.PPC.Common
private set { _settings = value; }
}
- public PPCViewModel(IPPCApplicationManager application, IAuthenticationProvider authentication, INavigationManager navigation, INotificationProvider notification)
+ public PPCViewModel()
{
- ApplicationManager = application;
- AuthenticationProvider = authentication;
- NavigationManager = navigation;
- NotificationProvider = notification;
+
}
public abstract void OnApplicationStarted();