public void UpdateLocation(object sender, EventArgs e) { foreach (Control key in updatableControls.Keys) { ILocationUpdate locationUpdate = updatableControls[key]; locationUpdate.Update(key); } }
public void Add(Control key, ILocationUpdate locationUpdate) { updatableControls.Add(key, locationUpdate); }
public Location(ILocationUpdate c) { UpdateFromChangeset(c); OnCreated(new LocationEvent.Created(this)); }
private void UpdateFromChangeset(ILocationUpdate c) { LocationName = c.LocationName; }
public void Update(ILocationUpdate c) { UpdateFromChangeset(c); OnUpdated(new LocationEvent.Updated(this)); }
public UpdateCommand(Guid id, ILocationUpdate c) { Id = id; LocationName = c.LocationName; }