/// <summary> /// Occurs when the user leaves the Zipcode field. /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void registerZipBox_Leave(object sender, EventArgs e) { bool verify = RegisterVerification.ZipVerifacation(registerZipBox.Text); ChangeBackColorTextBox(registerZipBox, verify); _isZipOk = verify; if (verify) { registerCityBox.Text = JSONReader.GetCity(int.Parse(registerZipBox.Text)); } }
/// <summary> /// Checks if zip is ok on leave /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void zipBox_Leave(object sender, EventArgs e) { zipOk = RegisterVerification.ZipVerifacation(zipBox.Text); DefaultTextBox_Leave(zipBox, zipOk); }
public bool ZipVerification_CheckInput(string zip) { return(RegisterVerification.ZipVerifacation(zip)); }