public MainPage() { this.InitializeComponent(); SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; fbHandler = FacebookHandler.Instance; //fbHandler.Logout(); FacebookLogout.IsEnabled = false; FacebookLike.IsEnabled = false; Facebook.IsEnabled = true; if (fbHandler.isLoggedIn()) { FacebookUser.Text = fbHandler.fbUser.Name; FacebookLogout.IsEnabled = true; FacebookLike.IsEnabled = true; Facebook.IsEnabled = false; } }
public Map() { this.InitializeComponent(); fbHandler = FacebookHandler.Instance; if(!fbHandler.isLoggedIn()) FacebookMessageSend.IsEnabled = false; GeofenceMonitor.Current.Geofences.Clear(); geolocator = new Geolocator(); //geolocator.MovementThreshold = 10; routeList = new ObservableCollection<PubRoute>(LocationHandler.Instance.routeList); SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; SystemNavigationManager.GetForCurrentView().BackRequested += App_BackRequested; isPubOpen(routeList[0].pubs[0]); getCurrentLocation(); GeofenceMonitor.Current.GeofenceStateChanged += OnGeofenceStateChanged; }