public DeviceSelectionViewModel(INavigationService navigationService, IDialogService dialogService, IBluetoothLeService bluetoothLeService)
        {
            this.navigationService  = navigationService;
            this.dialogService      = dialogService;
            this.bluetoothLeService = bluetoothLeService;

            BluetoothDevices = new ObservableRangeCollection <IBluetoothDevice>();
        }
Ejemplo n.º 2
0
        public MainViewModel(INavigationService navigationService, IDialogService dialogService, IBluetoothLeService bluetoothLeService)
        {
            this.navigationService  = navigationService;
            this.dialogService      = dialogService;
            this.bluetoothLeService = bluetoothLeService;

            exposureTimeOptions = new ObservableCollection <ExposureTime>(ExposureTime.Times);
            exposureTime        = exposureTimeOptions.FirstOrDefault(e => e.Milliseconds == 8);
        }