Beispiel #1
0
 /// <summary>
 /// Display all books which were not returned on time
 /// </summary>
 private void buttonDelayed_Click(object sender, EventArgs e)
 {
     try
     {
         List <DelayedBook> delayedBooks = controller.DelayedBooks();
         foreach (DelayedBook book in delayedBooks)
         {
             MessageBox.Show($"Title: {book.Title}\t Due date: {book.DueDate}", "Delayed Books");
         }
     }
     catch (MySqlException ex)
     {
         MessageBox.Show("Connection to database problem", "Information");
     }
 }