public void Display() { pictureBoxCover.Image = book.DisplayCover(); textBox_BookTitle.Text = book.BookTitle; textBox_ISBN.Text = book.ISBN; textBox_TotalCopies.Text = book.BookCopies.TotalnumberOfCopies.ToString(); textBox_CopiesLeft.Text = book.BookCopies.NumberOfBookLeft.ToString(); textBox_Publisher.Text = book.Publisher; textBoxAddCategories.Text = String.Join(", ", book.Categories); dateTimePicker1.Value = book.RelaseDate; textBoxAuthor.Text = String.Join(",", book.Authors); }
private void BookUserControler_Load(object sender, EventArgs e) { try { pictureBox1.Image = book.DisplayCover(); } catch { } labelBookTitle.Text = book.BookTitle; IAuthor authorbook = book.Authors.First(); labelAuthorName.Text = authorbook.authorName(); }