Exemple #1
0
 static LocationManager()
 {
     LastPosition = new GeographicalCordinates()
     {
         Latitude = 35, Longitude = 35
     };
 }
Exemple #2
0
        private async void _locationManager_OnPositionDetermined(object sender, PositionDeterminedEventArgs ca)
        {
            if (ca.IsPermissionFailure || ca.IsOtherFailure)
                MessageBox.Show("Unable to determine your location.  Please ensure that location services are enabled.");
            else
            {
                _location = ca.Location;

                Settings settings = Settings.Load();

                if (!String.IsNullOrEmpty(settings.FacebookToken) && !String.IsNullOrEmpty(settings.FacebookId))
                {
                    await Authenticate(settings);
                }
                else
                {
                    LoginButtonBorder.Visibility = Visibility.Visible;
                }
            }
        }
 private TinderSession(FacebookSessionInfo fbSession, GeographicalCordinates location)
 {
     _fbSessionInfo = fbSession;
     _location = location;
 }
        public static TinderSession CreateNewSession(FacebookSessionInfo fbSession, GeographicalCordinates location)
        {
            _currentSession = new TinderSession(fbSession, location);

            return _currentSession;
        }
Exemple #5
0
 private TinderSession(FacebookSessionInfo fbSession, GeographicalCordinates location)
 {
     _fbSessionInfo = fbSession;
     _location      = location;
 }
Exemple #6
0
        public static TinderSession CreateNewSession(FacebookSessionInfo fbSession, GeographicalCordinates location)
        {
            _currentSession = new TinderSession(fbSession, location);

            return(_currentSession);
        }
Exemple #7
0
 static LocationManager()
 {
     LastPosition = new GeographicalCordinates() { Latitude = 35, Longitude = 35 };
 }
Exemple #8
0
 public PositionDeterminedEventArgs(GeographicalCordinates coordinate)
 {
     Location = coordinate;
     IsPermissionFailure = false;
     IsOtherFailure = false;
 }
Exemple #9
0
 public PositionDeterminedEventArgs(GeographicalCordinates coordinate)
 {
     Location            = coordinate;
     IsPermissionFailure = false;
     IsOtherFailure      = false;
 }