public PivotPage1() { InitializeComponent(); cw = new CoordinateWatcher(); gr = new GeoRoutines(map1, lineLayer); if ((App.Current as App).day == 0) { gr.plotPath("2012-12-05 00:00:00", "2012-12-06 00:00:00"); } else if ((App.Current as App).day == 1) { gr.plotPath("2012-12-04 00:00:00", "2012-12-05 00:00:00"); } else if ((App.Current as App).day == 2) { gr.plotPath("2012-12-03 00:00:00", "2012-12-04 00:00:00"); } //getLocations(uid, "2012-12-04 00:00:00", "2012-12-05 00:00:00"); //cw.getCoordinates(); }