static LocationManager() { LastPosition = new GeographicalCordinates() { Latitude = 35, Longitude = 35 }; }
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; }
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); }
static LocationManager() { LastPosition = new GeographicalCordinates() { Latitude = 35, Longitude = 35 }; }
public PositionDeterminedEventArgs(GeographicalCordinates coordinate) { Location = coordinate; IsPermissionFailure = false; IsOtherFailure = false; }
public PositionDeterminedEventArgs(GeographicalCordinates coordinate) { Location = coordinate; IsPermissionFailure = false; IsOtherFailure = false; }