public void SetEliminarParamentro(String tabla, String indice) { try { if (tabla.Equals("CONTRATO") && indice != "0") { bContratoVC bc = new bContratoVC(); Int32 resp = bc.SetEliminarContrato(Int32.Parse(indice)); if (resp != 0) { MessageBox(resp + "Registro Eliminado Correctamente!"); SetLLenadoContrato(); } else { MessageBox("Ocurrio un Error en el Servidor!"); } } else if (tabla.Equals("CONTRATO_DETALLE") && indice != "0") { bContratoDetalleVC bcd = new bContratoDetalleVC(); Int32 resp = bcd.SetEliminarContratoDetalle(Int32.Parse(indice)); if (resp != 0) { MessageBox(resp + "Registro Eliminado Correctamente!"); } else { MessageBox("Ocurrio un Error en el Servidor!"); } } } catch (Exception) { MessageBoxcCatch("ERROR => Selecione un Registro"); } }