/// <summary> /// Occurs when the user leaves the Firstname field. /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void registerFirstnameBox_Leave(object sender, EventArgs e) { bool verify = RegisterVerification.InputOnlyLettersVerification(registerFirstnameBox.Text); ChangeBackColorTextBox(registerFirstnameBox, verify); _isFirstnameOk = verify; }
/// <summary> /// Checks if lastname is ok on leave /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void lastnameBox_Leave(object sender, EventArgs e) { lastnameOk = RegisterVerification.InputOnlyLettersVerification(lastnameBox.Text); DefaultTextBox_Leave(lastnameBox, lastnameOk); }
public bool InputOnlyLettersVerification_CheckInput(string input) { return(RegisterVerification.InputOnlyLettersVerification(input)); }