private void Button_Click_1(object sender, RoutedEventArgs e) { GeoLocation Gl = new GeoLocation(); MessageBoxResult result = MessageBox.Show(Gl.GetLocationProperty(), "Response", MessageBoxButton.OK); }
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(); }
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(); }