Exemple #1
0
 internal void put(Poi p, NamedArea namedArea)
 {
     if (this.pois == null)
     {
         this.pois = new List <Poi>();
     }
     if (!p.isDataFree())
     {
         this.poiMapperHdd.save(p, getPoiSubDir(p, namedArea));
         p.free();
         //if (!this.pois.Contains(p))
         //{
         this.pois.Add(p);
         //}
     }
 }
Exemple #2
0
 public void setCacheArea(Area cacheArea)
 {
     this.cacheArea = cacheArea;
     if (this.cachedPois != null)
     {
         for (int i = 0; i < this.cachedPois.Count; i++)
         {
             Poi poi = this.cachedPois[i];
             if (!this.cacheArea.contains(poi))
             {
                 poi.free();
                 this.cachedPois.Remove(poi);
             }
         }
     }
     else
     {
         Debug.WriteLine("setCacheArea: NULLLLLLLLLLLL", ToString());
     }
 }