private void button1_Click(object sender, EventArgs e)
        {
            BorrarError();
            if (ValidarCampos())
            {
                Reparacion r = new Reparacion
                {
                    IdReparacion      = Convert.ToInt32(txtIdRep.Text),
                    Identificacion    = txtId.Text,
                    DetalleReparacion = txtReparacion.Text,
                    FechaReparacion   = dtpReparacion.Value.ToString(),
                };


                ReparacionBLL.Modificar(r, control.MiUsuario);


                MessageBox.Show("Activo Reparado");


                this.Visible = false;

                limpiarTxt();

                control.RefrescarTablaReparaciones();
            }
            else
            {
                MessageBox.Show("Error al ingresar datos");
            }
        }
        private void btnAceptarDetalleReporte_Click(object sender, EventArgs e)
        {
            if (rtbDetalleReporte.Text == "")
            {
                MessageBox.Show("No puede dejar campos en blanco");
            }
            else

            {
                Reparacion reparaciones = new Reparacion
                {
                    DetalleReporte = rtbDetalleReporte.Text,
                    FechaReporte   = dtpFechaReporte.Value.ToString(),
                    Identificacion = ActivoReparacion.Identificacion,

                    /*FechaReparacion = default(DateTime),
                     * DetalleReparacion = "",*/
                };



                ReparacionBLL.AgregarReparacion(reparaciones, control.MiUsuario);

                MessageBox.Show("Insertado Correctamente");

                rtbDetalleReporte.Text = "";


                int idAula = Convert.ToInt32(control.getLabelNumeroAula().Text);

                control.RefrescarTablaActivosPorAulas(idAula);

                this.Visible = false;
            }
        }
        public void cargarReparacion(int id)
        {
            Reparacion r = ReparacionBLL.BuscarReparacion(id);

            txtIdRep.Text      = r.IdReparacion.ToString();
            txtId.Text         = r.Identificacion;
            txtReporte.Text    = r.DetalleReporte;
            dtpReporte.Value   = Convert.ToDateTime(r.FechaReporte);
            txtReparacion.Text = r.DetalleReparacion;
        }