private void btnNuevo_Click(object sender, EventArgs e)
        {
            frmManFacturasCompra formulario = new frmManFacturasCompra();

            formulario.recogerDatos(0);
            formulario.StartPosition = FormStartPosition.CenterScreen;
            formulario.ShowDialog();
            Buscar();
        }
 private void grdFacturasCompra_DoubleClick(object sender, EventArgs e)
 {
     if (this.grdFacturasCompra.RowCount > 0)
     {
         frmManFacturasCompra formulario = new frmManFacturasCompra();
         formulario.recogerDatos(Convert.ToInt32(this.grdFacturasCompra.CurrentRow.Cells[0].Value));
         formulario.StartPosition = FormStartPosition.CenterScreen;
         formulario.ShowDialog();
         Buscar();
     }
 }