Create RouteManager on start
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user