public CacheEditor() { InitializeComponent(); CacheCollectionVM cacheCollectionVm; Loaded += (s, e) => { cacheCollectionVm = new CacheCollectionVM(cacheManager); DataContext = cacheCollectionVm; }; }
public CacheMapEditor() { InitializeComponent(); Loaded += (s, e) => { cacheCollectionVm = new CacheCollectionVM(cacheManager); DataContext = cacheCollectionVm; }; authenticatedUser = GeoCachingBLFactory.GetAuthenticationManager().AuthenticatedUser; CacheMap.Loaded += (s, e) => { CacheMap.Center = new Location(authenticatedUser.Position.Latitude, authenticatedUser.Position.Longitude); }; }