public App()
        {
            InitializeComponent();

            DependencyService.Register <MockDataStore>();
            MainPage = new AppShell();

            rfidService      = DependencyService.Get <IRfidService>();
            bluetoothService = DependencyService.Get <IBluetoothService>();
        }
Exemplo n.º 2
0
        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();
            });
        }
Exemplo n.º 3
0
 public CheckpointsController(StorageService storageService, IRfidService rfidService)
 {
     this.storageService = storageService;
     this.rfidService    = rfidService;
 }
Exemplo n.º 4
0
 public CheckpointsController(CheckpointRepository checkpointRepository, IRfidService rfidService)
 {
     this.checkpointRepository = checkpointRepository;
     this.rfidService          = rfidService;
 }