public DeviceSelectionViewModel(INavigationService navigationService, IDialogService dialogService, IBluetoothLeService bluetoothLeService) { this.navigationService = navigationService; this.dialogService = dialogService; this.bluetoothLeService = bluetoothLeService; BluetoothDevices = new ObservableRangeCollection <IBluetoothDevice>(); }
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); }