public MainPage()
        {
            InitializeComponent();
            _viewModelLocator = new ViewModelLocator();
            _informerManagerLocator = new InformerManagerLocator();
            _informerManagerLocator.InformerManager.NewMessage += InformerManager_NewMessage;

            photoChooserTask = new PhotoChooserTask();
            photoChooserTask.Completed += new EventHandler<PhotoResult>(PhotoChooserTask_Completed);

            _viewModelLocator.MainViewModel.BlockingLoading += MainViewModel_BlockingLoading;

            //_viewModelLocator.MainViewModel.SelectedEntityChanged += MainViewModel_SelectedEntityChanged;

        }
        public LoginRegisterPage()
        {
            InitializeComponent();

            _viewModelLocator = new ViewModelLocator();
            _informerManagerLocator = new InformerManagerLocator();
            //_locationHelper = new LocationManager();
            _user = new User();

            _informerManagerLocator.InformerManager.NewMessage += InformerManager_NewMessage;
            //_locationHelper.LocationRetrieved += _locationHelper_LocationRetrieved;

            _viewModelLocator.LoginRegisterViewModel.UndeterminateLoading += LoginRegisterViewModel_UndeterminateLoading;
           // _viewModelLocator.LoginRegisterViewModel.PaypalUriRetreived += LoginRegisterViewModel_PaypalUriRetreived;
            
        }