Exemplo n.º 1
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); };
        }
 public AuthenticationWindow()
 {
     InitializeComponent();
     try {
         authenticationManager = GeoCachingBLFactory.GetAuthenticationManager();
     }
     catch {
         // any exception at this point means configuration for dal-assemblies do no work correctly --> end application with error message
         MessageBox.Show("Fatal Error: Could not load required program components.", "Fatal eror", MessageBoxButton.OK, MessageBoxImage.Error);
         Close();
     }
 }
Exemplo n.º 3
0
 public GeoCachingService()
 {
     try {
         authenticationManager = GeoCachingBLFactory.GetAuthenticationManager();
         cacheManager          = GeoCachingBLFactory.GetCacheManager();
         statisticsManager     = GeoCachingBLFactory.GetStatisticsManager();
         backendRunning        = true;
     }
     catch {
         // in case of any exception when creating "connection" to backend, set flag
         // and do not provide access from outside
         backendRunning = false;
     }
 }
Exemplo n.º 4
0
 public void Initialize( )
 {
     uManager = GeoCachingBLFactory.GetUserManager();
 }
Exemplo n.º 5
0
 public CacheManager()
 {
     authenticatedUser = GeoCachingBLFactory.GetAuthenticationManager().AuthenticatedUser;
 }
Exemplo n.º 6
0
 public void Initialize( )
 {
     statisticsManager = GeoCachingBLFactory.GetStatisticsManager();
 }
 public void Initialize()
 {
     authManager = GeoCachingBLFactory.GetAuthenticationManager();
 }