Beispiel #1
0
        private void ComeBack_Click(object sender, RoutedEventArgs e)
        {
            SearchBooks searchBooks = new SearchBooks();

            foreach (Book n in library.MyBooks)
            {
                BookItem bookItem = new BookItem(n);
                searchBooks.ListBookWrapPanel.Children.Add(bookItem);
            }
            MainWindow.THIS.ContentGrid.Children.Clear();
            MainWindow.THIS.ContentGrid.Children.Add(searchBooks);
        }
Beispiel #2
0
 public void FounderTwo(IEnumerable <Book> LinqName)
 {
     if (LinqName.Count() != 0)
     {
         ListBookWrapPanel.Children.Clear();
         foreach (Book n in LinqName)
         {
             BookItem bookItem = new BookItem(n);
             ListBookWrapPanel.Children.Add(bookItem);
         }
     }
     else
     {
         SearchFail.IsOpen = true;
     }
 }