public void Confirmation() { UIAlertView alert = new UIAlertView() { Title = "¿ESTA SEGURO?", Message = "¿Esta seguro de borrar el detalle?" }; alert.AddButton("Aceptar"); alert.AddButton("Cancelar"); alert.Clicked += (s, o) => { try{ if (o.ButtonIndex == 0) { deleteDetailService = new DeleteDetailService(); String respuesta = deleteDetailService.SetDetail(ds.idTareaDetalle); if (respuesta.Equals("1")) { SuccesConfirmation(); } else if (respuesta.Equals("0")) { ErrorConfirmation(); } } }catch (System.Net.WebException) { ServerError(); } }; alert.Show(); }
public void Confirmation() { UIAlertView alert = new UIAlertView(){ Title = "¿ESTA SEGURO?", Message = "¿Esta seguro de borrar el detalle?" }; alert.AddButton("Aceptar"); alert.AddButton("Cancelar"); alert.Clicked += (s, o) => { try{ if(o.ButtonIndex==0){ deleteDetailService = new DeleteDetailService(); String respuesta = deleteDetailService.SetDetail(ds.idTareaDetalle); if(respuesta.Equals("1")){ SuccesConfirmation(); } else if(respuesta.Equals("0")){ ErrorConfirmation(); } } }catch(System.Net.WebException){ ServerError(); } }; alert.Show(); }