/// <summary>
        /// This class object is not deserializable, and should be created by EgsDevicesManager.
        /// </summary>
        internal EgsDevice()
        {
            _IndexInHidDevicePathList = -1;
            _HidDeviceDevicePath      = "";
            _IsHidDeviceConnected     = false;

            _IsConnected = false;

            _IsUpdatingFirmware = false;

            _IsSendingTouchScreenHidReport = false;
            _IsSendingHoveringStateOnTouchScreenHidReport = false;
            _IsSendingEgsGestureHidReport = false;

            WaitTimeInMillisecondsBeforeSetFeatureReport = 2;
            WaitTimeInMillisecondsBeforeGetFeatureReport = 10;

            CreateProperties();

            HidReportsUpdate     = new EgsDeviceHidReportsUpdate();
            TouchScreenHidReport = new EgsDeviceTouchScreenHidReport();
            EgsGestureHidReport  = new EgsDeviceEgsGestureHidReport();

            IsHidDeviceConnectedChanged += UpdateIsHidDeviceConnectedRelatedProperties;

            _Settings = new EgsDeviceSettings();
            _Settings.InitializeOnceAtStartup();
            _Settings.CurrentConnectedEgsDevice = this;
            _Settings.HidAccessPropertyUpdated += EgsDeviceSettings_HidAccessPropertyUpdated;
        }
Esempio n. 2
0
        /// <summary>
        /// This class object is not deserializable, and should be created by EgsDevicesManager.
        /// </summary>
        internal EgsDevice()
        {
            _IndexInHidDevicePathList = -1;
            _HidDeviceDevicePath      = "";
            _IsHidDeviceConnected     = false;

            _IsConnected = false;

            _IsUpdatingFirmware = false;

            _IsSendingTouchScreenHidReport = false;
            _IsSendingHoveringStateOnTouchScreenHidReport = false;
            _IsSendingEgsGestureHidReport = false;

            WaitTimeInMillisecondsBeforeSetFeatureReport = 2;
            WaitTimeInMillisecondsBeforeGetFeatureReport = 10;

            CreateProperties();

            if (IsToUseWin32CreateFile)
            {
                HidReportsUpdate = new EgsDeviceHidReportsUpdate();
            }
            TouchScreenHidReport = new EgsDeviceTouchScreenHidReport();
            EgsGestureHidReport  = new EgsDeviceEgsGestureHidReport();

            IsHidDeviceConnectedChanged += UpdateIsHidDeviceConnectedRelatedProperties;

            CameraViewImageSourceBitmapCapture = new EgsDeviceCameraViewImageSourceBitmapCapture();
            FaceDetectionOnHost = new EgsDeviceFaceDetectionOnHost();
            CameraViewImageSourceBitmapCapture.IsCameraDeviceConnectedChanged += UpdateIsConnected;

            _Settings = new EgsDeviceSettings();
            _Settings.InitializeOnceAtStartup();
            _Settings.CurrentConnectedEgsDevice = this;
            _Settings.HidAccessPropertyUpdated += EgsDeviceSettings_HidAccessPropertyUpdated;
        }