private void BtnEnableDevice_Click(object sender, EventArgs e) { // This is of no use since i implemented zkemKeeper the other way objZkeeper.EnableDevice(int.Parse(tbxMachineNumber.Text.Trim()), true); }