public FinalPage() { InitializeComponent(); ps = (PassParameters)NavigationService.GetNavigationData(); phoneNumber = ps.getPhoneNumber(); initialDate = ps.getInitialDate(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { PassParameters ps = new PassParameters(); DateTime startTime = DateTime.UtcNow; ps.setInitialDate(startTime); GeoLocation GL = new GeoLocation(); GL.Location(); ps.setPhoneNumber(phoneNumber); ps.setInitialLatitude( GL.getLatitude() ); ps.setInitialLongitude( GL.getLongitude() ); NavigationService.Navigate(new Uri("/Pg3_Reached.xaml", UriKind.Relative), ps); }
private void Button_Click_1(object sender, RoutedEventArgs e) { PassParameters ps = new PassParameters(); DateTime startTime = DateTime.UtcNow; ps.setInitialDate(startTime); GeoLocation GL = new GeoLocation(); GL.Location(); ps.setPhoneNumber(phoneNumber); ps.setInitialLatitude(GL.getLatitude()); ps.setInitialLongitude(GL.getLongitude()); NavigationService.Navigate(new Uri("/Pg3_Reached.xaml", UriKind.Relative), ps); }