private void btnConfirm_Click(object sender, EventArgs e)
        {
            //declares 3 variables
            Int32 AgeMin;
            Int32 AgeMax;
            string Location;

            //this converts the two values to Int32 and gets the location txt box
            AgeMin = Convert.ToInt32(NumUpDwnAgeMin.Value);
            AgeMax = Convert.ToInt32(NumUpDownAgeMax.Value);
            Location = txtBxLocation.Text;



            //these are some simple validation techniques, before the full ones are implemented in the main model
            if (Location == "")
            {
                lblError.Text = "Please enter a location";
            }

            else if (AgeMax < AgeMin)
            {
                lblError.Text = "The minimum age must be less than or equal to the maximum age";
            }

            //this runs if all the validation runs ok
            //this also runs if the user is editing a current saved search
            else
            {
                    FrmEmailClient EmailClient = new FrmEmailClient();
                    clsCustomerSavedSearch SavedSearch = new clsCustomerSavedSearch();
                    SavedSearch.AddNewSavedSearch(AgeMin, AgeMax, Location);
                    //this runs if it's an edit rather than a new email
                    if (OldMinAge != 0)
                    {
                        clsCustomerSavedSearch SavedSearch2 = new clsCustomerSavedSearch();
                        SavedSearch2.RemoveItem(OldMinAge, OldMaxAge, OldLocation);
                    }
                    EmailClient.Show();
                    this.Close();
            }
        }