private void button1_Click(object sender, EventArgs e) { if (Convert.ToInt32(lblID.Text) <= 0) { MessageBox.Show("Please Choose One Book"); return; } if (libraryApp.RemoveBook(Convert.ToInt32(lblID.Text))) { MessageBox.Show("Delete Success"); lblID.Text = "0"; } else { MessageBox.Show("Error occurred\n Please relogin if the error continues!"); } }