Пример #1
0
 private void resource_tbx_KeyUp(object sender, KeyRoutedEventArgs e)
 {
     if (e.Key == Windows.System.VirtualKey.Enter)
     {
         AccountAccepted?.Invoke(this, new EventArgs());
     }
 }
Пример #2
0
 private void password_pwb_KeyUp(object sender, KeyRoutedEventArgs e)
 {
     if (string.IsNullOrWhiteSpace(resource_tbx.Text))
     {
         resource_tbx.Focus(FocusState.Keyboard);
     }
     else if (e.Key == Windows.System.VirtualKey.Enter)
     {
         AccountAccepted?.Invoke(this, new EventArgs());
     }
 }