Exemplo n.º 1
0
        private bool IsDevicePresentProc(ModelDeviceSample deviceToCheck, ModelInterfaceSample parentInterface)
        {
            bool isPresent  = false;
            var  hwDetector = GenerateHardwareDetector();

            if (hwDetector != null)
            {
                var availableDevices = hwDetector.GetConnectedInstruments(parentInterface);
                isPresent = deviceToCheck.IsDevicePresent(availableDevices);
            }
            return(isPresent);
        }
Exemplo n.º 2
0
 private bool IsDevicePresentProc(ModelDeviceSample deviceToCheck, ModelInterfaceSample parentInterface)
 {
     bool isPresent = false;
     var hwDetector = GenerateHardwareDetector();
     if (hwDetector != null)
     {
         var availableDevices = hwDetector.GetConnectedInstruments(parentInterface);
         isPresent = deviceToCheck.IsDevicePresent(availableDevices);
     }
     return isPresent;
 }