From 9cf413bcb11fc09f94017eaca65d08eb986bb10c Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 3 Oct 2016 18:32:37 +0200 Subject: [PATCH] inits an Xlabs cfg mgr --- BookAStar/BookAStar/App.xaml.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BookAStar/BookAStar/App.xaml.cs b/BookAStar/BookAStar/App.xaml.cs index c6f4676e..add3d1df 100644 --- a/BookAStar/BookAStar/App.xaml.cs +++ b/BookAStar/BookAStar/App.xaml.cs @@ -16,6 +16,7 @@ using XLabs.Forms.Services; using XLabs.Ioc; using XLabs.Platform.Mvvm; using XLabs.Platform.Services; +using XLabs.Settings; /* Glyphish icons from @@ -62,6 +63,7 @@ namespace BookAStar app.Startup += (o, e) => Debug.WriteLine("Application Startup"); app.Suspended += (o, e) => Debug.WriteLine("Application Suspended"); } + public static GenericConfigSettingsMgr ConfigManager { protected set; get; } private void Configure(IXFormsApp app) { @@ -72,8 +74,11 @@ namespace BookAStar ViewFactory.Register(); ViewFactory.Register(); ViewFactory.Register(); - } + ConfigManager = new XLabs.Settings.GenericConfigSettingsMgr(s => + Settings.AppSettings.GetValueOrDefault(s, Settings.SettingsDefault), null); + } + ExtendedMasterDetailPage masterDetail; public App(IPlatform instance) @@ -86,6 +91,7 @@ namespace BookAStar NavigationPage.SetHasNavigationBar(MainPage, false); NavigationPage.SetHasBackButton(MainPage, false); } + BookQueriesPage bQueriesPage; AccountChooserPage accChooserPage; HomePage home;