Exemplo n.º 1
0
 private void deletecontact_Click(object sender, EventArgs e)
 {
     LOLConnectClient service = new LOLConnectClient(LOLConstants.DefaultHttpBinding, LOLConstants.LOLConnectEndpoint);
     RunOnUiThread(delegate
     {
         Toast.MakeText(context, Resource.String.editContactDeleting, ToastLength.Short).Show();
     });
     Contact toDelete = ContactDB.ConvertFromContactDB(EditContactUtil.UserContact);
     service.ContactsDeleteCompleted += Service_ContactsDeleteCompleted;
     service.ContactsDeleteAsync(toDelete.ContactID, AndroidData.CurrentUser.AccountID, new Guid(AndroidData.ServiceAuthToken));
 }