private void BtnSearch_Click(object sender, RoutedEventArgs e) { this.dgBooks.Items.Clear(); List <Book> books = dr.SearchBooks(tbSearch.Text); foreach (Book book in books) { this.dgBooks.Items.Add(book); } }
private void BtnSearch_Click(object sender, RoutedEventArgs e) { this.dgBooks.Items.Clear(); List <Book> books = dr.SearchBooks(tbSearch.Text); foreach (Book book in books) { this.dgBooks.Items.Add(book); } }