private void additemBttn_Click(object sender, EventArgs e)
 {
     if (addedititemform == null)
     {
         addedititemform      = new addedititemFrm();
         addedititemform.Text = "Add Item";
         addedititemform.submitupdateBttn.Text = "Submit";
         addedititemform.FormClosed           += addedititemform_FormClosed;
     }
     addedititemform.Show(this);
     Hide();
 }
 private void edititemBttn_Click(object sender, EventArgs e)
 {
     if (addedititemform == null)
     {
         addedititemform      = new addedititemFrm();
         addedititemform.Tag  = inventoryDtgrdvw[0, inventoryDtgrdvw.CurrentRow.Index].Value;
         addedititemform.Text = "Edit Item";
         addedititemform.submitupdateBttn.Text = "Update";
         addedititemform.FormClosed           += addedititemform_FormClosed;
     }
     addedititemform.Show(this);
     Hide();
 }
 void addedititemform_FormClosed(object sender, FormClosedEventArgs e)
 {
     addedititemform = null;
     LoadIventory();
     Show();
 }