WayPoint.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Windows.Devices.Geolocation;
  2. using Windows.UI.Xaml.Controls;
  3. namespace Breda_Tour.Data_
  4. {
  5. public class WayPoint
  6. {
  7. private Geopoint _position;
  8. public Geopoint Position
  9. {
  10. get { return _position; }
  11. }
  12. private string title;
  13. public string description { get; set; }
  14. public int number;
  15. private Image image;
  16. public Image Image
  17. {
  18. get { return image; }
  19. }
  20. public WayPoint(Geopoint position, string title, int number, Image image)
  21. {
  22. this._position = position;
  23. this.title = title;
  24. this.number = number;
  25. this.image = image;
  26. }
  27. public WayPoint(double latitude, double longitude, string title, int number, Image image)
  28. {
  29. _position = new Geopoint(new BasicGeoposition() { Altitude = 0, Latitude = latitude, Longitude = longitude });
  30. this.title = title;
  31. this.number = number;
  32. this.image = image;
  33. }
  34. }
  35. }