Пример #1
0
        public LocationService(ILocationTrackingSensor locationSensor, IGeneralSettingsService generalSettingsService)
        {
            _locationSensor = locationSensor;
            _generalSettingsService = generalSettingsService;
            _locationSensor.LocationUpdated += _locationSensor_LocationUpdated;

            this.Register<LocationSettingsChangedMessage>(_onLocationSettingsChanged);
        }
Пример #2
0
        public LocationService(ILocationTrackingSensor locationSensor, IGeneralSettingsService generalSettingsService)
        {
            _locationSensor                  = locationSensor;
            _generalSettingsService          = generalSettingsService;
            _locationSensor.LocationUpdated += _locationSensor_LocationUpdated;

            this.Register <LocationSettingsChangedMessage>(_onLocationSettingsChanged);
        }
Пример #3
0
        public HomeViewModel(IEntityCache cache, ILocalStorage storage, 
            ILocationService locationService,
            ILocationTrackingSensor sensor)
        {
            _cache = cache;
            _storage = storage;
            _locationService = locationService;
            _sensor = sensor;
            Title = "Home";
            NextPageCommand = new Command(_nextPage);
            ShowNativeViewCommand = new Command(_onShowNativeView);

            RepeatersCommand = new Command(_onRepeaters);
        }
Пример #4
0
        public HomeViewModel(IEntityCache cache, ILocalStorage storage,
                             ILocationService locationService,
                             ILocationTrackingSensor sensor)
        {
            _cache                = cache;
            _storage              = storage;
            _locationService      = locationService;
            _sensor               = sensor;
            Title                 = "Home";
            NextPageCommand       = new Command(_nextPage);
            ShowNativeViewCommand = new Command(_onShowNativeView);

            RepeatersCommand = new Command(_onRepeaters);
        }