public void AddAssociation(PositionAssociation positionAssociaton) { if (positionAssociaton.pinId == -1) { positionAssociaton.pinId = nextPinId; } if (positionAssociaton.associationName == "") { positionAssociaton.associationName = string.Format("Pin{0}", positionAssociaton.pinId); } nextPinId = Math.Max(nextPinId, positionAssociaton.pinId) + 1; associationList.Add(positionAssociaton); dirtyEvent.SetDirty(); }
internal Legend AddNewLegend() { Legend legend = new Legend(_sourceMap, dirtyEvent, parentBoundsChangedEvent); string displayName = legend.displayName; int num = 1; List <string> list = this.list.ConvertAll <string>((Legend l) => l.displayName); while (list.Contains(legend.displayName)) { num++; legend.displayName = string.Format("{0} {1}", displayName, num); } this.list.Add(legend); dirtyEvent.SetDirty(); return(legend); }
private void StoreRenderRegion(Present present) { if (renderRegion == null && present is BoundsPresent) { BoundsPresent boundsPresent = (BoundsPresent)present; renderRegion = boundsPresent.GetRenderRegion().Copy(dirtyEvent); boundsChangedEvent.SetDirty(); } }
public void SetDirty() { if (transparencyOptionsChangedEvent != null) { transparencyOptionsChangedEvent(); } dirtyEvent.SetDirty(); }
public void SetDirty() { cachedHashCode = 19; foreach (LatLon arg_1D_0 in vertexList) { cachedHashCode = cachedHashCode * 131 + vertexList.GetHashCode(); } dirtyEvent.SetDirty(); }
public void Add(Layer layer) { layers.Add(layer); dirtyEvent.SetDirty(); }
public void Add(SourceMap sourceMap) { sourceMaps.Add(sourceMap); dirtyEvent.SetDirty(); }
public void SetDirty() { dirtyEvent.SetDirty(); }
public void UpdateAssociation(LatLonZoom sourceLLZ, LatLonZoom globalLLZ) { _sourcePosition = new DisplayablePosition(sourceLLZ); _globalPosition = new DisplayablePosition(globalLLZ); dirtyEvent.SetDirty(); }