예제 #1
0
 internal void loadData(Poi poi)
 {
     if (poi.isDataFree())
     {
         this.poiMapperHdd.loadData(poi, getPoiSubDir(poi, this.currentNamedArea));
     }
 }
예제 #2
0
파일: PoiBrowser.cs 프로젝트: mitice/foo
 public void preview(Poi poi)
 {
     cleanPreview();
     if (poi.isMediaFree() || poi.isDataFree())
     {
         this.poiRepository.load(poi);
     }
     this.currentPoi = poi;
     this.freeY      = FREE_Y_DEFAULT;
     updatePreview();
     this.tabControl.SelectedIndex = 1;
     //if (!this.Visible)
     this.Visible = true;
 }
예제 #3
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);
         //}
     }
 }