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