示例#1
0
 private void tbMessege_KeyDown(object sender, KeyEventArgs e)
 {
     if (InputLanguageManager.Current.CurrentInputLanguage.Name.ToLower().Equals("en-us") && currentMsg.IsCorrect(e.Key.ToString()[0]))
     {
         return;
     }
     else
     {
         e.Handled = true;
     }
 }