コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: LegendList.cs プロジェクト: honfika/GMap.NET
        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);
        }
コード例 #3
0
 private void StoreRenderRegion(Present present)
 {
     if (renderRegion == null && present is BoundsPresent)
     {
         BoundsPresent boundsPresent = (BoundsPresent)present;
         renderRegion = boundsPresent.GetRenderRegion().Copy(dirtyEvent);
         boundsChangedEvent.SetDirty();
     }
 }
コード例 #4
0
        public void SetDirty()
        {
            if (transparencyOptionsChangedEvent != null)
            {
                transparencyOptionsChangedEvent();
            }

            dirtyEvent.SetDirty();
        }
コード例 #5
0
ファイル: RenderRegion.cs プロジェクト: ymx0627/GMap.NET
        public void SetDirty()
        {
            cachedHashCode = 19;
            foreach (LatLon arg_1D_0 in vertexList)
            {
                cachedHashCode = cachedHashCode * 131 + vertexList.GetHashCode();
            }

            dirtyEvent.SetDirty();
        }
コード例 #6
0
ファイル: LayerList.cs プロジェクト: ymx0627/GMap.NET
 public void Add(Layer layer)
 {
     layers.Add(layer);
     dirtyEvent.SetDirty();
 }
コード例 #7
0
 public void Add(SourceMap sourceMap)
 {
     sourceMaps.Add(sourceMap);
     dirtyEvent.SetDirty();
 }
コード例 #8
0
ファイル: Mashup.cs プロジェクト: ymx0627/GMap.NET
 public void SetDirty()
 {
     dirtyEvent.SetDirty();
 }
コード例 #9
0
 public void UpdateAssociation(LatLonZoom sourceLLZ, LatLonZoom globalLLZ)
 {
     _sourcePosition = new DisplayablePosition(sourceLLZ);
     _globalPosition = new DisplayablePosition(globalLLZ);
     dirtyEvent.SetDirty();
 }