예제 #1
0
 // Upon clicking "Search," opens a search results window and closes this window
 private void UxSearch_Click(object sender, RoutedEventArgs e)
 {
     SetAllTerms();
     InitializeSearchModel();
     windowResults = new SearchWindowResults(swm.RetrieveCanList(out numOfCans));
     windowResults.ShowDialog();
     this.Close();
 }
예제 #2
0
 /// <summary>
 /// Event Handler for the "Search" Button, calls  the database search method and opens a
 /// SearchWindowResults window containing its contents
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UxSearch_Click(object sender, RoutedEventArgs e)
 {
     windowResults = new SearchWindowResults(CalculateResultList(), searchTerm); // calls the database search method to initialize the window
     windowResults.ShowDialog();
     this.Close();
 }