private void insertNewCust() { BusinessAppDataContext badc = new BusinessAppDataContext(); tblCustomer cust = new tblCustomer(); cust.First_Name_OR_Company = txtBxNameCompany.Text; try {cust.Middle_Initial = Convert.ToChar(txtBxMiddleInit.Text);} catch (FormatException) { cust.Middle_Initial = null; } try {cust.Last_Name = txtBxLastName.Text;} catch (FormatException) { cust.Last_Name = null; } try {cust.Email = txtBxEmail.Text;} catch (FormatException) { cust.Email = null; } cust.Phone_Number = txtBxPhoneNum.Text; badc.tblCustomers.InsertOnSubmit(cust); badc.SubmitChanges(); form.updateCmbBx(); }