コード例 #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            GeoLocation Gl = new GeoLocation();

            MessageBoxResult result = MessageBox.Show(Gl.GetLocationProperty(),
                                                      "Response", MessageBoxButton.OK);
        }
コード例 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            GeoLocation Gl = new GeoLocation();

            MessageBoxResult result = MessageBox.Show(Gl.GetLocationProperty(),
            "Response", MessageBoxButton.OK);
        }
コード例 #3
0
        public void sendText()
        {
            GeoLocation    GL         = new GeoLocation();
            SmsComposeTask SMSCompose = new SmsComposeTask();

            SMSCompose.To = phoneNumber;

            double speed           = CalculateSpeed();
            String initialLocation = "Lat: " + lat1 + " Lon: " + lon1;
            String finalLocation   = "Lat: " + lat2 + " Lon: " + lon2;

            //postToServer(speed,  initialLocation,  finalLocation);

            String location = GL.GetLocationProperty();

            SMSCompose.Body = "I have arrived safely to my destination! (Avg Speed: " + speed + "mph)";
            //SMSCompose.Body = "I have arrived safely to my destination! (Avg Speed: 10.00 mph)";
            SMSCompose.Show();
        }
コード例 #4
0
        public void sendText()
        {
            GeoLocation GL = new GeoLocation();
            SmsComposeTask SMSCompose = new SmsComposeTask();
            SMSCompose.To = phoneNumber;

            double speed = CalculateSpeed();
            String initialLocation = "Lat: "+lat1+" Lon: "+lon1;
            String finalLocation = "Lat: "+lat2+" Lon: "+lon2;

            //postToServer(speed,  initialLocation,  finalLocation);

            String location = GL.GetLocationProperty();

            SMSCompose.Body = "I have arrived safely to my destination! (Avg Speed: "+speed+"mph)";
            //SMSCompose.Body = "I have arrived safely to my destination! (Avg Speed: 10.00 mph)";
            SMSCompose.Show();
        }