/// <summary> /// Wybranie ksiązki z listy do wyporzyczenia /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BookChooseButton_Click(object sender, RoutedEventArgs e) { ListBook bookList = new ListBook(true); if (bookList.ShowDialog() == true) { BookTitle.Text = bookList.SelectedBook.Title; BookAuthor.Text = bookList.SelectedBook.Author; BookISBN.Text = bookList.SelectedBook.ISBN; } }
/// <summary> /// Interakcja na kliknięcie opcji listy książek w menu książki /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ListBookMenuItem_Click(object sender, RoutedEventArgs e) { ListBook listBook = new ListBook(); listBook.ShowDialog(); }