Example #1
0
 private void SetSelectItem(MarketItemModel itemModel, bool isSelected)
 {
     if (itemModel != null)
     {
         itemModel.IsSelected = isSelected;
         itemModel.SetChanges();
     }
 }
Example #2
0
 public void RemoveItemLock(MarketItemModel item)
 {
     if (item != null)
     {
         if (_lockedItems.Contains(item.AssetId))
         {
             _lockedItems.Remove(item.AssetId);
         }
         item.IsLockFromServer = false;
         item.SetChanges();
     }
 }
Example #3
0
 public void AddItemLock(MarketItemModel item)
 {
     if (item != null)
     {
         if (!_lockedItems.Contains(item.AssetId))
         {
             _lockedItems.Add(item.AssetId);
         }
         item.IsLockFromServer = true;
         item.SetChanges();
     }
 }