コード例 #1
0
 private void actualizarRegistroEvento()
 {
     if (txtnombre.Text.Trim() == "" || txtnombre.Text.Trim() == null)
     {
         MessageBox.Show("El dato del Nombre del Evento esta vacio o solo contiene espacios, favor de colocar un nombre Valido");
     }
     else if (cbxestado.SelectedValue == null)
     {
         MessageBox.Show("El ESTADO DEL EVENTO que requiere actualizar esta vacio, favor de seleccionar un estado para modificar");
     }
     else
     {
         REC01_EVENTO obj = new REC01_EVENTO();
         obj.EVENTO          = Convert.ToDecimal(dtglistado.CurrentRow.Cells[0].Value);
         obj.NOMBRE          = txtnombre.Text.ToString();
         obj.ESTADO_REGISTRO = cbxestado.SelectedValue.ToString();
         Evento           reg  = new Evento();
         Mensaje <Evento> resp = reg.ActualizarRegistroEvento(obj);
         MessageBox.Show(resp.mensaje);
     }
 }