示例#1
0
        public IHardwareDetection MakeFTDICommunication()
        {
            if (_detectorFTDI == null)
            {
                _detectorFTDI = new DetectorFTDI();
            }

            return(_detectorFTDI);
        }
示例#2
0
        public IHardwareDetection MakeAgilentCommunication()
        {
            if (_detectorAgilent == null)
            {
                _detectorAgilent = new DetectorAgilent();
            }

            return(_detectorAgilent);
        }
示例#3
0
        public HardwareDetector(IHardwareDetection hardwareDetection, IHardwareDetectionPresenter deviceDetectionPresenter)
        {
            _hardwareDetection        = hardwareDetection;
            _deviceDetectionPresenter = deviceDetectionPresenter;

            _hardwareDetection.Identified += DeviceIdentified;
            _hardwareDetection.Inserted   += DeviceInserted;
            _hardwareDetection.Removed    += DeviceRemoved;
        }
示例#4
0
 public IHardwareDetectionInteractor MakeHardwareDetector(IHardwareDetection hardwareDetection, IHardwareDetectionPresenter deviceDetectionPresenter)
 {
     return(new HardwareDetector(hardwareDetection, deviceDetectionPresenter));
 }