private void add_button_itemType_Click(object sender, EventArgs e)
        {
            Form A = new ItemTypePopUp(cashreceipt_cashdisbursment, dh);

            A.ShowDialog();
            refreshItemTypes();
        }
        private void itemType_dgv_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Form A = new ItemTypePopUp(int.Parse(itemType_dgv.SelectedRows[0].Cells["itemTypeID"].Value.ToString()), cashreceipt_cashdisbursment, dh);

            A.ShowDialog();
            refreshItemTypes();
        }
 private void itemType_dgv_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Enter)
     {
         Form A = new ItemTypePopUp(int.Parse(itemType_dgv.SelectedRows[0].Cells["itemTypeID"].Value.ToString()), cashreceipt_cashdisbursment, dh);
         A.ShowDialog();
         refreshItemTypes();
     }
 }