Exemplo n.º 1
0
 private void fullDataRequest(bool persist)
 {
     if (!FullDataLoaded)
     {
         if (!_loadingFullData && LoadFullData != null)
         {
             _loadingFullData       = true;
             _fullLoadGeocache.Code = this.Code;
             if (!persist)
             {
                 _fullLoadGeocache._shortDescription       = this._shortDescription;
                 _fullLoadGeocache._shortDescriptionInHtml = this._shortDescriptionInHtml;
                 _fullLoadGeocache._longDescription        = this._longDescription;
                 _fullLoadGeocache._longDescriptionInHtml  = this._longDescriptionInHtml;
             }
             var e = new EventArguments.LoadFullGeocacheEventArgs(_fullLoadGeocache);
             LoadFullData(this, e);
             _fullLoadGeocache._shortDescription       = e.ShortDescription;
             _fullLoadGeocache._shortDescriptionInHtml = e.ShortDescriptionInHtml;
             _fullLoadGeocache._longDescription        = e.LongDescription;
             _fullLoadGeocache._longDescriptionInHtml  = e.LongDescriptionInHtml;
             _loadingFullData = false;
             if (persist)
             {
                 this._shortDescription       = _fullLoadGeocache._shortDescription;
                 this._shortDescriptionInHtml = _fullLoadGeocache._shortDescriptionInHtml;
                 this._longDescription        = _fullLoadGeocache._longDescription;
                 this._longDescriptionInHtml  = _fullLoadGeocache._longDescriptionInHtml;
                 FullDataLoaded = true;
             }
         }
     }
     else
     {
         _fullLoadGeocache._shortDescription       = this._shortDescription;
         _fullLoadGeocache._shortDescriptionInHtml = this._shortDescriptionInHtml;
         _fullLoadGeocache._longDescription        = this._longDescription;
         _fullLoadGeocache._longDescriptionInHtml  = this._longDescriptionInHtml;
     }
 }
Exemplo n.º 2
0
 void gc_LoadFullData(object sender, EventArguments.LoadFullGeocacheEventArgs e)
 {
     OnLoadFullData(e);
 }
Exemplo n.º 3
0
 private void fullDataRequest(bool persist)
 {
     if (!FullDataLoaded)
     {
         if (!_loadingFullData && LoadFullData != null)
         {
             _loadingFullData = true;
             _fullLoadGeocache.Code = this.Code;
             if (!persist)
             {
                 _fullLoadGeocache._shortDescription = this._shortDescription;
                 _fullLoadGeocache._shortDescriptionInHtml = this._shortDescriptionInHtml;
                 _fullLoadGeocache._longDescription = this._longDescription;
                 _fullLoadGeocache._longDescriptionInHtml = this._longDescriptionInHtml;
             }
             var e = new EventArguments.LoadFullGeocacheEventArgs(_fullLoadGeocache);
             LoadFullData(this, e);
             _fullLoadGeocache._shortDescription = e.ShortDescription;
             _fullLoadGeocache._shortDescriptionInHtml = e.ShortDescriptionInHtml;
             _fullLoadGeocache._longDescription = e.LongDescription;
             _fullLoadGeocache._longDescriptionInHtml = e.LongDescriptionInHtml;
             _loadingFullData = false;
             if (persist)
             {
                 this._shortDescription = _fullLoadGeocache._shortDescription;
                 this._shortDescriptionInHtml = _fullLoadGeocache._shortDescriptionInHtml;
                 this._longDescription = _fullLoadGeocache._longDescription;
                 this._longDescriptionInHtml = _fullLoadGeocache._longDescriptionInHtml;
                 FullDataLoaded = true;
             }
         }
     }
     else
     {
         _fullLoadGeocache._shortDescription = this._shortDescription;
         _fullLoadGeocache._shortDescriptionInHtml = this._shortDescriptionInHtml;
         _fullLoadGeocache._longDescription = this._longDescription;
         _fullLoadGeocache._longDescriptionInHtml = this._longDescriptionInHtml;
     }
 }