Example #1
0
        public MainViewModel(IBingMapsApi bingMapsApi, ICensusApi censusApi)
        {
            _mapViewModel = new MapViewModel(bingMapsApi, censusApi);

            _searchCommand = new RelayCommand<string>(DoSearch, CanDoSearch);
            _refreshCommand = new RelayCommand(DoRefresh);
            _clearCommand = new RelayCommand(DoClear, CanDoClear);
        }
Example #2
0
        public MapViewModel(IBingMapsApi bingMaps, ICensusApi censusApi)
        {
            this.bingMaps = bingMaps;
            this.censusApi = censusApi;

            _items = new ObservableCollection<PopulatedEntity>();
            _centerOfUs = new Location(39.833333, -98.583333);
            _zoomLevel = 5.0;
        }