コード例 #1
0
        public TrackingViewModel(ICompass compass, IGeoCoordinateWatcher geoWatcher)
        {
            _compass = compass;
            _compass.CurrentValueChanged += OnCompassValueChanged;

            _geoWatcher = geoWatcher;
            _geoWatcher.PositionChanged += OnPositionChanged;

            StartTrackingCommand = new RelayCommand(StartTracking);
            Reset();
        }
コード例 #2
0
        public TrackingViewModel(ICompass compass, IGeoCoordinateWatcher geoWatcher)
        {
            _compass = compass;
            _compass.CurrentValueChanged += OnCompassValueChanged;

            _geoWatcher = geoWatcher;
            _geoWatcher.PositionChanged += OnPositionChanged;

            StartTrackingCommand = new RelayCommand(StartTracking);
            Reset();
        }
コード例 #3
0
ファイル: LocationService.cs プロジェクト: tundraray/tootfm
 public LocationService(ISettingsStore settingsStore, IGeoCoordinateWatcher geoCoordinateWatcher)
 {
     this._settingsStore        = settingsStore;
     this._geoCoordinateWatcher = geoCoordinateWatcher;
 }