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; }