public DataModel()
{
Instance = this;
ObservableCollection<Location> newLocations = new ObservableCollection<Location>();
//newLocations.Add(new Location() { Name="stv"});
XmlSerializer deserializer = new XmlSerializer(typeof(ObservableCollection<Location>));
TextReader textReader = new StreamReader("Resources\\CapgeminiLocations.xml");
newLocations = (ObservableCollection<Location>)deserializer.Deserialize(textReader);
textReader.Close();
//XmlSerializer serializer = new XmlSerializer(typeof(ObservableCollection<Location>));
//TextWriter textWriter = new StreamWriter("Resources\\CapgeminiLocations.xml");
//serializer.Serialize(textWriter, newLocations);
//textWriter.Close();
_locations = newLocations;
NotifyPropertyChanged("Locations");
}