private void btnUpdate_Click(object sender, EventArgs e) { appDB = new AppDatabase(); string editbook = appDB.EditBook(lstBookids.Text, txtBookTitle.Text, txtBookCode.Text, txtNotes.Text); if (editbook == "success") { LoadFeedback(txtBookTitle.Text + " has been updated successfully!", true, true); loadBooks(); } else { LoadFeedback("Unable to edit a book: " + editbook, false); } loadBooks(); }