コード例 #1
0
        /// <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;
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 public bool InputOnlyLettersVerification_CheckInput(string input)
 {
     return(RegisterVerification.InputOnlyLettersVerification(input));
 }