コード例 #1
0
 private void PINboxPreviewTextInput(object sender, TextCompositionEventArgs e)
 {
     if (!ValidatorText.AreNumbers(e.Text))
     {
         e.Handled = true;
     }
     else
     {
         e.Handled = false;
     }
 }
コード例 #2
0
 private void PINboxTextChanged(object sender, TextChangedEventArgs e)
 {
     if (PINbox.Text.Length == 5 && ValidatorText.AreNumbers(PINbox.Text))
     {
         VerifyButton.IsEnabled = true;
     }
     else
     {
         VerifyButton.IsEnabled = false;
     }
 }
コード例 #3
0
 private void PINboxTextChanged(object sender, TextChangedEventArgs e)
 {
     if (PINbox.Text.Length == 5 && ValidatorText.AreNumbers(PINbox.Text) && !String.IsNullOrWhiteSpace(PINbox.Text) &&
         !String.IsNullOrWhiteSpace(AnswerTextBox.Text))
     {
         VerifyButton.IsEnabled = true;
     }
     else
     {
         VerifyButton.IsEnabled = false;
     }
 }
コード例 #4
0
 private bool IsQuestion()
 {
     if (ValidatorText.IsQuestion(QuestionTextBox.Text) && QuestionTextBox.Text.Length > MINIMUN_LENGHT &&
         !String.IsNullOrWhiteSpace(QuestionTextBox.Text))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #5
0
 private bool IsEmail()
 {
     if (ValidatorText.IsEmail(EmailTextBox.Text) && EmailTextBox.Text.Length > MINIMUM_MAIL_LENGHT &&
         !String.IsNullOrWhiteSpace(EmailTextBox.Text))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }