| 123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using Windows.Devices.Geolocation;
- namespace Breda_Tour.Data
- {
- public class Waypoint
- {
- private Geopoint _position;
- public Geopoint Position
- {
- get { return _position; }
- }
- public String Title { get; private set; }
- public String Description { get; private set; }
- public List<Picture> Pictures { get; private set; }
- public bool FromPreview { get; set; }
- public Waypoint(double Lat, double Long, String Title, String Description, List<string> pictures)
- {
- this._position = new Geopoint(new BasicGeoposition() { Altitude = 0, Latitude = Lat, Longitude = Long });
- this.Title = Title;
- this.Description = Description;
- this.Pictures = new List<Picture>();
- if (pictures != null)
- {
- foreach (var imageSource in pictures)
- {
- string newSource = "ms-appx:///Storage/Images/" + imageSource;
- Pictures.Add(new Picture(newSource));
- }
- }
- }
- }
- }
|