Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 public void LoadItems()
 {
     if (!_hasItemLoaded)
     {
         try
         {
             foreach (var itemRecord in ItemRecord.LoadAuctionedItems())
             {
                 _auctionedItems.Add(itemRecord.EntityLowId, itemRecord);
             }
             _hasItemLoaded = true;
         }
         catch (Exception e)
         {
             RealmDBMgr.OnDBError(e);
             foreach (var itemRecord in ItemRecord.LoadAuctionedItems())
             {
                 _auctionedItems.Add(itemRecord.EntityLowId, itemRecord);
             }
             _hasItemLoaded = true;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 public void LoadItems()
 {
     if (_hasItemLoaded)
     {
         return;
     }
     try
     {
         foreach (ItemRecord loadAuctionedItem in ItemRecord.LoadAuctionedItems())
         {
             _auctionedItems.Add(loadAuctionedItem.EntityLowId, loadAuctionedItem);
         }
         _hasItemLoaded = true;
     }
     catch (Exception ex)
     {
         RealmDBMgr.OnDBError(ex);
         foreach (ItemRecord loadAuctionedItem in ItemRecord.LoadAuctionedItems())
         {
             _auctionedItems.Add(loadAuctionedItem.EntityLowId, loadAuctionedItem);
         }
         _hasItemLoaded = true;
     }
 }