Esempio n. 1
0
        /// <summary>
        /// Occurs when the user leaves the City field.
        /// </summary>
        /// <param name="sender">The object sender</param>
        /// <param name="e">The event args</param>
        private void registerCityBox_Leave(object sender, EventArgs e)
        {
            bool verify = RegisterVerification.CityVerification(registerCityBox.Text);

            ChangeBackColorTextBox(registerCityBox, verify);
            _isCityOk = verify;
        }
        /// <summary>
        /// Checks if city is ok on leave
        /// </summary>
        /// <param name="sender">The object sender</param>
        /// <param name="e">The event args</param>
        private void cityBox_Leave(object sender, EventArgs e)
        {
            cityOk = RegisterVerification.CityVerification(cityBox.Text);

            DefaultTextBox_Leave(cityBox, cityOk);
        }
 public bool CityVerification_CheckInput(string city)
 {
     return(RegisterVerification.CityVerification(city));
 }