private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lvSuppliers.SelectedItems.Count > 0)
     {
         EditSupplierForm form = new EditSupplierForm((Supplier)lvSuppliers.SelectedItems[0].Tag);
         if (form.ShowDialog() == DialogResult.OK)
         {
             DisplaySuppliers();
         }
     }
 }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (lvSuppliers.SelectedItems.Count == 0)
     {
         MessageBox.Show("Choose a Supplier");
     }
     else
     {
         var supplier          = (Supplier)lvSuppliers.SelectedItems[0].Tag;
         EditSupplierForm form = new EditSupplierForm(supplier);
         if (form.ShowDialog() == DialogResult.OK)
         {
             DisplaySuppliers();
         }
     }
 }