Ejemplo n.º 1
0
        public AppHubViewModel(IWalkerDataService walkerDataService)
        {
            _logger = new AdpLogger();
            _logger.Log(this, "AppHubViewModel()");
            _walkerDataService = walkerDataService;

            InitializeDefaults();
            Messenger.Default.Register<AppHubViewModel>(this, HandleSendVm);
        }
Ejemplo n.º 2
0
 // public TestViewModel(IWalkerDataService walkerDataService)
 public Wp8AppHubViewModel(INavigationService navigationService)
 {
     _navigationService = navigationService;
     _walkerDataService = new WalkerDataService(); 
     _logger = new AdpLogger();
     GeoCoordinate = new System.Device.Location.GeoCoordinate();
     // Messenger.Default.Register<Wp8AppHubViewModel>(this, HandleMessengerMessage);
     Messenger.Default.Register<string>(this, HandleMessengerStringMessage);
     ConfigureMapModes();
     _walkerAppSettings = new WalkerAppSettings();
     if (_walkerAppSettings.AzureEnabled)
         DoIt();
     else
     Activities = new ObservableCollection<Walk>();
     ElapsedTime = "n/a";
 }
Ejemplo n.º 3
0
        public WalkerDataService()
        {
            _walkerAppSettings = new WalkerAppSettings();

            _activities = new ObservableCollection<Walk>();

            _logger = new AdpLogger();
            _logger.Log(this, "WalkerDataService()");

            //pi.IsVisible = true;
            //pi.IsIndeterminate = true;
            //pi.Text = "Resolving...";
            // SystemTray.SetProgressIndicator(this, pi);
            // SystemTray.SetProgressIndicator(Walker.View.AppHubView, pi);
            // fix bummer Messenger? Vm = SimpleIoc.Default.GetInstance<AppHubViewModel>(); 

            pi = new ProgressIndicator();
            pi.IsIndeterminate = true;
            pi.IsVisible = false;
            _Trips = new ObservableCollection<Walk>();

            // MvvmMap.ZoomLevel = 15;
            // fix TestVm = SimpleIoc.Default.GetInstance<TestViewModel>();
            Geos = new List<System.Device.Location.GeoCoordinate>();

            PhoneApplicationService phoneAppService = PhoneApplicationService.Current;
            phoneAppService.UserIdleDetectionMode = IdleDetectionMode.Disabled;

            LocationInitialize();
            TryBluetooth();
        }
Ejemplo n.º 4
0
        public AppHubView()
        {
            _logger = new AdpLogger();
            _logger.Log(this, "AdpLogger()");
            InitializeComponent();
            pi = new ProgressIndicator();
            pi.IsIndeterminate = true;
            pi.IsVisible = false;
            _Trips = new ObservableCollection<Walk>();

            MvvmMap.ZoomLevel = 15;
            // TestVm = SimpleIoc.Default.GetInstance<Wp8AppHubViewModel>();
            Geos = new List<System.Device.Location.GeoCoordinate>();

            PhoneApplicationService phoneAppService = PhoneApplicationService.Current;
            phoneAppService.UserIdleDetectionMode = IdleDetectionMode.Disabled;


            Messenger.Default.Register<MapLayer>(this, HandleMapLayer);
        }