private void searchControl_FoodSearchStarted(object sender, FoodSearchEventArgs e)
 {
     //reattach handler on new search
     Dispatcher.BeginInvoke(() =>
         {
             spSearchRunning.Visibility = Visibility.Visible;
             searchResultList.Visibility = Visibility.Collapsed;
         });
     DailyBurnService.CurrentSearch.SearchReturned += searchControl_SearchReturned;
 }
Пример #2
0
 private void searchControl_FoodSearchStarted(object sender, FoodSearchEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
         NavigationService.Navigate(new Uri("/FoodSearchResults.xaml", UriKind.RelativeOrAbsolute))
     );
 }
Пример #3
0
 protected void OnSearchStarted(FoodSearchEventArgs e)
 {
     if (FoodSearchStarted != null)
         FoodSearchStarted(this, e);
 }
Пример #4
0
 void dbSearch_SearchReturned(object sender, FoodSearchEventArgs e)
 {
     DailyBurnService.CurrentSearch = e.Search;
     OnSearchStarted(e);
 }
 private void searchControl_SearchReturned(object sender, FoodSearchEventArgs e)
 {
    
     showSearchResults();
 }