예제 #1
0
 public VoiceCommandService(TrackingService tracking, StorageService storage)
 {
     _tracking = tracking;
     _storage  = storage;
     InstallVoiceCommandDefinitions();
     LoadPhrases();
 }
예제 #2
0
 public ExceptionService(TrackingService tracking, ResourceService res)
 {
     _tracking = tracking;
     _res = res;
 }
예제 #3
0
        public MainViewModel(IParkenDdClient client,
            VoiceCommandService voiceCommandService,
            JumpListService jumpList,
            ParkingLotListFilterService filterService,
            SettingsService settings,
            StorageService storage,
            GeolocationService geo,
            TrackingService tracking,
            ExceptionService exceptionService)
        {
            _client = client;
            _voiceCommands = voiceCommandService;
            _jumpList = jumpList;
            _filterService = filterService;
            _settings = settings;
            _storage = storage;
            _geo = geo;
            _tracking = tracking;
            _exceptionService = exceptionService;

            Messenger.Default.Register(this, (SettingChangedMessage msg) =>
            {
                if (msg.IsSetting(nameof(_settings.ShowExperimentalCities)))
                {
                    var temp = SelectedCity;
                    _selectedCity = null;
                    RaisePropertyChanged(() => SelectedCity);
                    RaisePropertyChanged(() => MetaDataCities);
                    _selectedCity = temp;
                    RaisePropertyChanged(() => SelectedCity);
                }
            });

            PropertyChanged += (sender, args) =>
            {
                if (args.PropertyName == nameof(MetaDataCities))
                {
                    UpdateServiceData();
                }
            };

            NetworkInformation.NetworkStatusChanged += sender =>
            {
                UpdateInternetAvailability();
            };
            UpdateInternetAvailability();
        }
예제 #4
0
 public ExceptionService(TrackingService tracking, ResourceService res)
 {
     _tracking = tracking;
     _res      = res;
 }