private void PinPasswordBox_PreviewTextInput(object sender, TextCompositionEventArgs e) { e.Handled = !ValidationController.AreAllValidNumericChars(e.Text); base.OnPreviewTextInput(e); }
private void TransferAmountTextBox_PreviewTextInput(object sender, TextCompositionEventArgs e) { ATMSession.RestartSessionTimer(); e.Handled = !ValidationController.AreAllValidNumericChars(e.Text); base.OnPreviewTextInput(e); }