private void Check_Click(object sender, EventArgs e) { ShowAll(true); customer = new Customer(); customer = customerController.Find(Identity.Text); if (customerController.Contains(Identity.Text)) { idEdit = customer.CustomerID; label1.Text = "Guest Found"; overView.myCustomer = new Customer(); overView.myCustomer.CustomerID = Identity.Text; PopulateTextBoxes(customer); state = FormStates.Edit; dbState = DB.DBOperation.Edit; ContinueB.Enabled = true; } else { label1.Text = "Guest Not Found! Add new Guest"; overView.myCustomer = new Customer(); state = FormStates.Add; dbState = DB.DBOperation.Add; //PopulateObject(); ContinueB.Enabled = true; } }