int GetProperty(SYNCOMLib.SynDevice dev, SYNCTRLLib.SynDeviceProperty prop) { int pValue = 0; dev.GetProperty((int)prop, ref pValue); return(pValue); }
bool GetDisableTouchpadWhenUSBMouse(SYNCOMLib.SynDevice dev, SYNCTRLLib.SynDeviceProperty prop) { int pValue = 0; try { dev.GetProperty((int)prop, ref pValue); return(Convert.ToBoolean(pValue)); } catch (Exception) { return(Convert.ToBoolean(pValue)); } }
bool GetTouchPadStatus(SYNCOMLib.SynDevice dev, SYNCTRLLib.SynDeviceProperty prop) { int pValue = 0; try { dev.GetProperty((int)prop, ref pValue); return(Convert.ToBoolean(pValue)); } catch (Exception) { return(Convert.ToBoolean(pValue)); } }