public void QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args) { if (IsSearchingRepo) { SearchRepoCommand.Execute(null); } else if (IsSearchingUsers) { SearchUsersCommand.Execute(null); } else if (IsSearchingIssues) { SearchIssuesCommand.Execute(null); } else if (IsSearchingCode) { SearchCodeCommand.Execute(null); } }
public void QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args) { ChangeVisibilityOfListViews(SelectedSearchItemIndex); switch (SelectedSearchItemIndex) { case 0: SearchRepoCommand.Execute(null); break; case 1: SearchUsersCommand.Execute(null); break; case 2: SearchIssuesCommand.Execute(null); break; case 3: SearchCodeCommand.Execute(null); break; } }
public void SearchItem_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (e.AddedItems.Count != 0) { ChangeVisibilityOfListViews((int)e.AddedItems.First()); switch ((int)e.AddedItems.First()) { case 0: if (Repositories == null) { SearchRepoCommand.Execute(null); } break; case 1: if (Users == null) { SearchUsersCommand.Execute(null); } break; case 2: if (Issues == null) { SearchIssuesCommand.Execute(null); } break; case 3: if (SearchCodes == null) { SearchCodeCommand.Execute(null); } break; } } }