private void Update_Click(object sender, EventArgs e)
 {
     if (BuyerName.Text != "" && BuyerName.Text != BuyerName.Name)
     {
         ApplicationManager.updateBuyer(BuyerName.Name, BuyerName.Text, comboBox1.SelectedItem.ToString());
     }
     if (Retailer.Checked)
     {
         ApplicationManager.updateBuyer("BuyerType", Retailer.Text, comboBox1.SelectedItem.ToString());
     }
     if (WholeSaller.Checked)
     {
         ApplicationManager.updateBuyer("BuyerType", WholeSaller.Text, comboBox1.SelectedItem.ToString());
     }
     comboBox1.Items.Remove(comboBox1.SelectedItem.ToString());
     ApplicationManager.getBuyerID(comboBox1);
     BuyerName.Text      = BuyerName.Name;
     Retailer.Checked    = false;
     WholeSaller.Checked = false;
 }