public void AddToLocations(Location location) { base.AddObject("Locations", location); }
// Method does not fire NotifyPropertyChanged public void SetLocationSilent(Location l) { this._Location = l; this._LocationId = l != null ? l.Id : 0; }
public static Location CreateLocation(string city, string state, string country, int ID) { Location location = new Location(); location.City = city; location.State = state; location.Country = country; location.Id = ID; return location; }