/// <summary> /// Occurs when the user leaves the Phone field. /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void registerPhoneBox_Leave(object sender, EventArgs e) { bool verify = RegisterVerification.PhoneVerifacation(registerPhoneBox.Text); ChangeBackColorTextBox(registerPhoneBox, verify); _isPhoneOk = verify; }
/// <summary> /// Checks if phone number is ok on leave /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void phoneBox_Leave(object sender, EventArgs e) { if (phoneBox.Text == _user.Phone) { phoneOk = true; } else { phoneOk = RegisterVerification.PhoneVerifacation(phoneBox.Text); } DefaultTextBox_Leave(phoneBox, phoneOk); }
public bool PhoneVerification_CheckInput(string phoneNo) { return(RegisterVerification.PhoneVerifacation(phoneNo)); }