コード例 #1
0
        public CacheEditor()
        {
            InitializeComponent();
            CacheCollectionVM cacheCollectionVm;

            Loaded += (s, e) => {
                cacheCollectionVm = new CacheCollectionVM(cacheManager);
                DataContext       = cacheCollectionVm;
            };
        }
コード例 #2
0
        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); };
        }