コード例 #1
0
 public FinalPage()
 {
     InitializeComponent();
     ps          = (PassParameters)NavigationService.GetNavigationData();
     phoneNumber = ps.getPhoneNumber();
     initialDate = ps.getInitialDate();
 }
コード例 #2
0
 public FinalPage()
 {
     InitializeComponent();
     ps = (PassParameters)NavigationService.GetNavigationData();
     phoneNumber = ps.getPhoneNumber();
     initialDate = ps.getInitialDate();
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }