private void btnDelete_Click(object sender, EventArgs e) { if (BookDao.DeleteByID(bookid)) { MessageBox.Show("Succesfully Deleted ", "Delete", MessageBoxButtons.OK, MessageBoxIcon.Information); Initiate(); } else { MessageBox.Show("Oparetion Unsuccesfull ", "Delete", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } }