public void Remove(TData data)
        {
            // BUG: not correct
            // TODO: implement shut carrier

            _bindings.Remove(data);
            var item = _window.Last.Value;

            _window.Remove(item);
            _itemFactory.Put(item);
            if (_window.All(_ => !data.Equals(_.LinkedData)))
            {
                return;
            }
            var next = _bindings.Find(_window.Last.Value.LinkedData).Next;

            if (next != null)
            {
                _window.AddLast(_itemFactory.Get(data));
            }
        }
Exemplo n.º 2
0
 public IScrollItem <ExampleScrollItemData> Get(ExampleScrollItemData data)
 {
     return(_itemFactory.Get(data));
 }