diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-31 12:07:40 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-31 12:07:40 +0300 |
| commit | f03676747c3c4207da0be4e59273cbbca9b79649 (patch) | |
| tree | 5fe054dea1c4135416ecdfc252ae2f867633bec6 /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | |
| parent | 040118073dc67e9daf9792863786f87705f3fff6 (diff) | |
| download | Tango-f03676747c3c4207da0be4e59273cbbca9b79649.tar.gz Tango-f03676747c3c4207da0be4e59273cbbca9b79649.zip | |
Implemented PPC data base source from %appdata% 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 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs index e5f13e394..d728b7939 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs @@ -22,7 +22,20 @@ namespace Tango.PPC.Common public INotificationProvider NotificationProvider { get; private set; } - public PPCSettings Settings { get; private set; } + private PPCSettings _settings; + public PPCSettings Settings + { + get + { + if (_settings == null) + { + _settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); + } + + return _settings; + } + private set { _settings = value; } + } public PPCViewModel(IPPCApplicationManager application, IAuthenticationProvider authentication, INavigationManager navigation, INotificationProvider notification) { @@ -30,8 +43,6 @@ namespace Tango.PPC.Common AuthenticationProvider = authentication; NavigationManager = navigation; NotificationProvider = notification; - - Settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); } public abstract void OnApplicationStarted(); |
