List<Location> GetLocations() { locations = new List<Location>(); Location location = new Location(); location.Id = Guid.NewGuid(); location.Name = "Work"; location.Address = "One Microsoft Way"; location.City = "Redmond"; location.State = "WA"; location.Latitude = 47.639767; location.Longitude = -122.129755; location.ZipCode = "98052"; locations.Add(location); location = new Location(); location.Id = Guid.NewGuid(); location.Name = "Home"; location.Address = "123 Main"; location.City = "Seattle"; location.State = "WA"; location.Latitude = 47.599903; location.Longitude = -122.333728; location.ZipCode = "98104"; locations.Add(location); return locations; }
public static Uri MakeLocationEditViewUri(Location location) { string uri = string.Format("/Views/Location/EditLocationView.xaml?{0}={1}", LocationIdQueryParam, location.Id); return new Uri( uri , UriKind.Relative); }