コード例 #1
0
        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);
        }
コード例 #2
0
 public void Save(Customer customer)
 {
     throw new System.NotImplementedException();
 }
コード例 #3
0
 public void OpenMapForCustomer(Customer customer)
 {
     var mapsTask = new MapsTask();
     mapsTask.SearchTerm = customer.City + ", " + customer.State;
     mapsTask.Show();
 }