private void PINboxPreviewTextInput(object sender, TextCompositionEventArgs e) { if (!ValidatorText.AreNumbers(e.Text)) { e.Handled = true; } else { e.Handled = false; } }
private void PINboxTextChanged(object sender, TextChangedEventArgs e) { if (PINbox.Text.Length == 5 && ValidatorText.AreNumbers(PINbox.Text)) { VerifyButton.IsEnabled = true; } else { VerifyButton.IsEnabled = false; } }
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; } }
private bool IsQuestion() { if (ValidatorText.IsQuestion(QuestionTextBox.Text) && QuestionTextBox.Text.Length > MINIMUN_LENGHT && !String.IsNullOrWhiteSpace(QuestionTextBox.Text)) { return(true); } else { return(false); } }
private bool IsEmail() { if (ValidatorText.IsEmail(EmailTextBox.Text) && EmailTextBox.Text.Length > MINIMUM_MAIL_LENGHT && !String.IsNullOrWhiteSpace(EmailTextBox.Text)) { return(true); } else { return(false); } }