Create RouteManager on start

This commit is contained in:
2015-12-17 00:23:07 +01:00
parent 358884f7d1
commit 1d7eb4631f
+19 -1
View File
@@ -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;
}
}
/// <summary>
/// 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;
}