示例#1
0
 private void UserKnownAlias_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (UserKnownAlias.SelectedValue != null)
     {
         UserListBox.SelectedValue = UserKnownAlias.SelectedValue;
         UserListBox.ScrollIntoView(UserListBox.SelectedValue);
         ErrorMessage.Content = "";
     }
 }
示例#2
0
 private void UserSearchButton_Click(object sender, RoutedEventArgs e)
 {
     if (UserSearchBox.Text != null)
     {
         try
         {
             UserListBox.SelectedValue = UserSearchBox.Text.ToLower();
             UserListBox.ScrollIntoView(UserListBox.SelectedValue);
             ErrorMessage.Content = "";
         }
         catch
         {
             ErrorMessage.Content = "User Not Found";
         }
     }
 }