private void buttonNuevo_Click(object sender, EventArgs e)
 {
     frmAgregarEditarProveedor faep = new frmAgregarEditarProveedor();
     faep.actualizarDataGridEvento += new frmAgregarEditarProveedor.actualizarDataGrid(llenarDataGrid);
     faep.MdiParent = this.MdiParent;
     faep.Show();
 }
        private void buttonEditar_Click(object sender, EventArgs e)
        {
            int r = dataGridProveedor.CurrentCell.RowIndex;

            frmAgregarEditarProveedor faep = new frmAgregarEditarProveedor(Convert.ToInt32(dataGridProveedor.Rows[r].Cells["idproveedor"].Value));
            faep.actualizarDataGridEvento += new frmAgregarEditarProveedor.actualizarDataGrid(llenarDataGrid);
            faep.MdiParent = this.MdiParent;
            faep.Show();
        }