private void button2_Click(object sender, EventArgs e)
        {
            ItemForm form = new ItemForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                refreshItemData();
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (dgvFood.SelectedRows.Count == 1)
     {
         DataGridViewRow selectedRow  = dgvFood.SelectedRows[0];
         item            selectedItem = (item)selectedRow.DataBoundItem;
         ItemForm        form         = new ItemForm(selectedItem);
         if (form.ShowDialog() == DialogResult.OK)
         {
             refreshItemData();
         }
     }
 }