Ejemplo n.º 1
0
        int GetProperty(SYNCOMLib.SynDevice dev, SYNCTRLLib.SynDeviceProperty prop)
        {
            int pValue = 0;

            dev.GetProperty((int)prop, ref pValue);
            return(pValue);
        }
Ejemplo n.º 2
0
        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));
            }
        }
Ejemplo n.º 3
0
        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));
            }
        }