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);
 }
Example #3
0
 public Location(ILocationUpdate c)
 {
     UpdateFromChangeset(c);
     OnCreated(new LocationEvent.Created(this));
 }
Example #4
0
 private void UpdateFromChangeset(ILocationUpdate c)
 {
     LocationName = c.LocationName;
 }
Example #5
0
 public void Update(ILocationUpdate c)
 {
     UpdateFromChangeset(c);
     OnUpdated(new LocationEvent.Updated(this));
 }
Example #6
0
 public UpdateCommand(Guid id, ILocationUpdate c)
 {
     Id           = id;
     LocationName = c.LocationName;
 }