private void buttonAgregarIngreso_Click(object sender, EventArgs e)
 {
     frmAgregarEditarIngresoGlobal faeig = new frmAgregarEditarIngresoGlobal();
     faeig.actualizarDataGridEvento += new frmAgregarEditarIngresoGlobal.actualizarDataGrid(calcular);
     //faeig.calcularDataGridEvento += new frmAgregarEditarIngresoGlobal.calcularDataGrid(calcular);
     faeig.MdiParent = this.MdiParent;
     faeig.Show();
 }
        private void buttonEditarIngreso_Click(object sender, EventArgs e)
        {
            int r = this.dataGridIngreso.CurrentCell.RowIndex;

            frmAgregarEditarIngresoGlobal faeig = new frmAgregarEditarIngresoGlobal(Convert.ToInt32(this.dataGridIngreso.Rows[r].Cells["idingreso"].Value));
            faeig.actualizarDataGridEvento += new frmAgregarEditarIngresoGlobal.actualizarDataGrid(llenarIngresos);
            faeig.MdiParent = this.MdiParent;
            faeig.Show();
        }