public void checkBookStatus() { if (connect.checkIfBookIsFree(bookID) == true) { Reserve.Show(); } else { Reserve.Hide(); Exception.Visible = true; Exception.Text = "Book is Lent or Reserved"; } }