From cff4a8079c4d352cfd47793c701650e62337ed6e Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 6 Jun 2018 18:39:17 +0300 Subject: Working on PPC.. --- .../PPC/Tango.PPC.Common/PPCViewModel.cs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (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 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(); -- cgit v1.3.1