示例#1
0
 public MunicipalityGeometryWasCorrected(
     MunicipalityId municipalityId,
     ExtendedWkbGeometry ewkb)
 {
     MunicipalityId      = municipalityId;
     ExtendedWkbGeometry = ewkb.ToString();
 }
 public MunicipalityWasDrawn(
     MunicipalityId municipalityId,
     ExtendedWkbGeometry ewkb)
 {
     MunicipalityId      = municipalityId;
     ExtendedWkbGeometry = ewkb.ToString();
 }
 private void When(MunicipalityGeometryWasCorrectedToCleared @event)
 {
     _geometry = null;
 }
 private void When(MunicipalityGeometryWasCorrected @event)
 {
     _geometry = new ExtendedWkbGeometry(@event.ExtendedWkbGeometry.ToByteArray());
 }
 private void When(MunicipalityWasDrawn @event)
 {
     _geometry = new ExtendedWkbGeometry(@event.ExtendedWkbGeometry.ToByteArray());
 }
 public void Draw(ExtendedWkbGeometry ewkb)
 {
     ApplyChange(new MunicipalityWasDrawn(_municipalityId, ewkb));
 }