public App() { InitializeComponent(); DependencyService.Register <MockDataStore>(); MainPage = new AppShell(); rfidService = DependencyService.Get <IRfidService>(); bluetoothService = DependencyService.Get <IBluetoothService>(); }
public ScanViewModel() { rfidService = DependencyService.Get <IRfidService>(); bluetoothService = DependencyService.Get <IBluetoothService>(); Title = "Scan"; ScanCommand = new Command(Scan); PlaySoundCommand = new Command(PlaySound); MessagingCenter.Subscribe <string, string>(this, "Scan", (sender, arg) => { Scan(); }); }
public CheckpointsController(StorageService storageService, IRfidService rfidService) { this.storageService = storageService; this.rfidService = rfidService; }
public CheckpointsController(CheckpointRepository checkpointRepository, IRfidService rfidService) { this.checkpointRepository = checkpointRepository; this.rfidService = rfidService; }