/// <summary>
 /// Evento para ver los préstamos activos o para prestar un artículo
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridArticulos_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.ColumnIndex == 6 && e.RowIndex != -1)
         {
             if (VerPrestamosArticulo.activo)
             {
                 VerPrestamosArticulo.idArticulo = Convert.ToInt32(gridArticulos.Rows[e.RowIndex].Cells[0].Value);
                 VerPrestamosArticulo formPrestamos = (VerPrestamosArticulo)this.Owner;
                 formPrestamos.modificarCampos();
                 this.Dispose();
             }
             else
             {
                 PrestarArticulo.idArticulo = Convert.ToInt32(gridArticulos.Rows[e.RowIndex].Cells[0].Value);
                 PrestarArticulo form = (PrestarArticulo)this.Owner;
                 form.modificarCampos();
                 this.Dispose();
             }
         }
     } catch (Exception exe)
     {
         MessageBox.Show("Hubo un error. Por favor regrese a la página principal e inténtelo de nuevo");
     }
 }
 /// <summary>
 /// Evento para ver los préstamos activos o para prestar un artículo
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridArticulos_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 6 && e.RowIndex != -1)
     {
         if (VerPrestamosArticulo.activo)
         {
             VerPrestamosArticulo.idArticulo = Convert.ToInt32(gridArticulos.Rows[e.RowIndex].Cells[0].Value);
             VerPrestamosArticulo formPrestamos = (VerPrestamosArticulo)this.Owner;
             formPrestamos.modificarCampos();
             this.Dispose();
         }
         else
         {
             PrestarArticulo.idArticulo = Convert.ToInt32(gridArticulos.Rows[e.RowIndex].Cells[0].Value);
             PrestarArticulo form = (PrestarArticulo)this.Owner;
             form.modificarCampos();
             this.Dispose();
         }
     }
 }