From 1d7eb4631f7452836c88057b00eff4711d69ccc5 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Thu, 17 Dec 2015 00:23:07 +0100 Subject: [PATCH] Create RouteManager on start --- NavCityBreda/App.xaml.cs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/NavCityBreda/App.xaml.cs b/NavCityBreda/App.xaml.cs index ba25788..e3cc226 100644 --- a/NavCityBreda/App.xaml.cs +++ b/NavCityBreda/App.xaml.cs @@ -31,7 +31,11 @@ namespace NavCityBreda public static Frame rootFrame; - private static GeoTracker geo = new GeoTracker(); + + // ======================= + // SINGLETONS + // ======================= + private static GeoTracker geo; public static GeoTracker Geo { @@ -41,6 +45,16 @@ namespace NavCityBreda } } + private static RouteManager rm; + + public static RouteManager RouteManager + { + get + { + return rm; + } + } + /// /// Initializes the singleton application object. This is the first line of authored code @@ -49,6 +63,10 @@ namespace NavCityBreda public App() { this.InitializeComponent(); + + geo = new GeoTracker(); + rm = new RouteManager(); + this.Suspending += OnSuspending; }