public ViewModelLocator() { _synchronizationService = new SynchronizationService(); if (!DesignerProperties.IsInDesignTool) _synchronizationService.Initialize(); _imageCache = new ImageCache(); _searchModel = new SearchModel(); _clock = new Clock(); _main = new MainViewModel(_synchronizationService.Attendee, _synchronizationService, _imageCache, _searchModel, _clock); _schedule = new ScheduleViewModel(_synchronizationService, _synchronizationService.Attendee, _imageCache, _searchModel); _tracks = new TracksViewModel(_synchronizationService.Attendee, _imageCache, _searchModel); _search = new SearchViewModel(_synchronizationService.Attendee, _imageCache, _searchModel); _map = new MapViewModel(_synchronizationService.Attendee, _imageCache, _clock); _notices = new NoticesViewModel(_synchronizationService.Attendee, _imageCache, _clock); _settings = new SettingsViewModel(_synchronizationService.Individual, _synchronizationService.Attendee); }
public ViewModelLocator() { _synchronizationService = new SynchronizationService(); if (!DesignerProperties.IsInDesignTool) { _synchronizationService.Initialize(); } _imageCache = new ImageCache(); _searchModel = new SearchModel(); _clock = new Clock(); _main = new MainViewModel(_synchronizationService.Attendee, _synchronizationService, _imageCache, _searchModel, _clock); _schedule = new ScheduleViewModel(_synchronizationService, _synchronizationService.Attendee, _imageCache, _searchModel); _tracks = new TracksViewModel(_synchronizationService.Attendee, _imageCache, _searchModel); _search = new SearchViewModel(_synchronizationService.Attendee, _imageCache, _searchModel); _map = new MapViewModel(_synchronizationService.Attendee, _imageCache, _clock); _notices = new NoticesViewModel(_synchronizationService.Attendee, _imageCache, _clock); _settings = new SettingsViewModel(_synchronizationService.Individual, _synchronizationService.Attendee); }