private void txtPhoneNumber_KeyUp(object sender, KeyRoutedEventArgs e) { try { //For check sytax entered in PhoneNumber field CheckSyntax.checkOnlyNumber(sender, e); } catch (Exception ex) { MessageDialog msg = new MessageDialog(ex.Message, "Err - txtPhoneNumber_KeyUp"); //msg.ShowAsync(); } }
private void txtCheckNumber_KeyUp(object sender, KeyRoutedEventArgs e) { CheckSyntax.checkOnlyNumber(sender, e); }