public async void OpenMapForCustomer(Customer customer) { var fullAddress = customer.Address1 + " " + customer.Address2 + " " + customer.City + ", " + customer.State + " " + customer.ZipCode; var uri = new Uri("bingmaps:?where=" + Uri.EscapeDataString(fullAddress)); await Windows.System.Launcher.LaunchUriAsync(uri); }
public void Save(Customer customer) { throw new System.NotImplementedException(); }
public void OpenMapForCustomer(Customer customer) { var mapsTask = new MapsTask(); mapsTask.SearchTerm = customer.City + ", " + customer.State; mapsTask.Show(); }