diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-06 18:39:17 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-06 18:39:17 +0300 |
| commit | cff4a8079c4d352cfd47793c701650e62337ed6e (patch) | |
| tree | af145431e541f08ed99b1d3ae377d8a59faedc4f /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | |
| parent | 776d934a1adc8c58301e56f6639afdeeccb0dda6 (diff) | |
| download | Tango-cff4a8079c4d352cfd47793c701650e62337ed6e.tar.gz Tango-cff4a8079c4d352cfd47793c701650e62337ed6e.zip | |
Working on PPC..
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | 20 |
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(); |
