public DeviceManager(
     IBluetoothDeviceManager bluetoothDeviceManager,
     IInfraredDeviceManager infraredDeviceManager,
     IDeviceRepository deviceRepository,
     DeviceFactory deviceFactory)
 {
     _bluetoothDeviceManager = bluetoothDeviceManager;
     _infraredDeviceManager  = infraredDeviceManager;
     _deviceRepository       = deviceRepository;
     _deviceFactory          = deviceFactory;
 }
Exemplo n.º 2
0
 public DeviceManager(
     IBluetoothDeviceManager bluetoothDeviceManager,
     IInfraredDeviceManager infraredDeviceManager,
     IDeviceRepository deviceRepository,
     DeviceFactory deviceFactory,
     IUIThreadService uiThreadService)
 {
     _bluetoothDeviceManager = bluetoothDeviceManager;
     _infraredDeviceManager  = infraredDeviceManager;
     _deviceRepository       = deviceRepository;
     _deviceFactory          = deviceFactory;
     _uiThreadService        = uiThreadService;
 }
Exemplo n.º 3
0
        public MainPageViewModel(INavigationService navigationService
                                 , IPageDialogService dialogService,
                                 IBluetoothDeviceManager bluetoothDeviceManager)
            : base(navigationService)
        {
            _navigationService      = navigationService;
            _dialogService          = dialogService;
            _bluetoothDeviceManager = bluetoothDeviceManager;

            Title = "Bluetooth Device Scan";

            DeviceSelectedCommand = new DelegateCommand <BTDeviceInfo>(DeviceSelected);
            ScanStartCommand      = new DelegateCommand(ScanStart, () => !IsExecuting)
                                    .ObservesProperty(() => IsExecuting)
                                    .ObservesProperty(() => ScanStatus);
        }