Пример #1
0
 public UserItemView(IGeolocationTarget user)
 {
     User         = user;
     this.Icon    = LazuriteUI.Icons.Icon.ChevronRight;
     this.Content = user.Name;
     this.Margin  = new System.Windows.Thickness(0, 1, 0, 0);
 }
Пример #2
0
        private static GeolocationInfo[] GetNonGpsLocations(IGeolocationTarget target, string device)
        {
            var userLocations = target.Geolocations.Where(x => x.Device.Equals(device)).ToArray(); //take first even it source is not GPS

            return(userLocations.Where(x => x.Geolocation.IsGPS || x == userLocations[0]).ToArray());
        }