private void btnRemove_Click(object sender, EventArgs e) { if (datakeeper.RemoveDevice()) { MessageBox.Show("Device has been Removed Sucessfully \n Please Restart Application For effective use", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("No Device Associated ", "Info", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }