2013-05-07 18:12:25 +02:00
|
|
|
|
using System.Collections.ObjectModel;
|
2012-08-09 23:41:47 +02:00
|
|
|
|
using System.ComponentModel;
|
2013-05-07 18:12:25 +02:00
|
|
|
|
using MapControl;
|
2012-05-04 12:52:20 +02:00
|
|
|
|
|
2012-11-22 21:42:29 +01:00
|
|
|
|
namespace SilverlightApplication
|
2012-05-04 12:52:20 +02:00
|
|
|
|
{
|
2012-11-22 21:42:29 +01:00
|
|
|
|
public class SamplePoint : INotifyPropertyChanged
|
2012-05-04 12:52:20 +02:00
|
|
|
|
{
|
2012-08-09 23:41:47 +02:00
|
|
|
|
private string name;
|
|
|
|
|
|
private Location location;
|
|
|
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return name; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
name = value;
|
|
|
|
|
|
OnPropertyChanged("Name");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Location Location
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return location; }
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
location = value;
|
|
|
|
|
|
OnPropertyChanged("Location");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void OnPropertyChanged(string propertyName)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (PropertyChanged != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2012-05-04 12:52:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2012-11-22 21:42:29 +01:00
|
|
|
|
public class SamplePolyline
|
2012-05-04 12:52:20 +02:00
|
|
|
|
{
|
|
|
|
|
|
public LocationCollection Locations { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2012-11-22 21:42:29 +01:00
|
|
|
|
public class SampleItemCollection : ObservableCollection<object>
|
2012-05-04 12:52:20 +02:00
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|