//ɾ³ýÎÒµÄÉÁ´æÆÀÂÛ void DeleteComment(StatusCommentsModel model) { Android.Support.V7.App.AlertDialog.Builder builder = new Android.Support.V7.App.AlertDialog.Builder(this); builder.SetCancelable(true); string[] btns = Resources.GetStringArray(Resource.Array.DialogDelete); builder.SetItems(btns, (s, e) => { ProgressDialog progressDialog = new ProgressDialog(this); progressDialog.SetProgressStyle(ProgressDialogStyle.Spinner); progressDialog.SetMessage("ɾ³ýÖÐ...."); progressDialog.Show(); StatusService.DeleteComment(UserTokenUtil.GetToken(this), model.StatusId.ToString(), model.Id.ToString(), () => { RunOnUiThread(() => { progressDialog.Hide(); listStatusComment.Remove(model); adapter.SetNewData(listStatusComment); AlertUtil.ToastShort(this, "ɾ³ý³É¹¦"); }); }, (error => { RunOnUiThread(() => { progressDialog.Hide(); AlertUtil.ToastShort(this, error); }); })); }).Show(); }