public string EnableDevice(bool enabled = true) { GetSelectedHardwareID(); if (selectedHardwareID == null) { return("Touch screen device not selected"); } try { HardwareManager.DisableDeviceByID(selectedHardwareID, !enabled); } catch (ApplicationException ex) { return(ex.Message); } return(""); }