Пример #1
0
        [SetUp] public void SetUp()
        {
            _nodeCollection   = new JetListViewNodeCollection(null);
            _columnCollection = new JetListViewColumnCollection();
            _selectionModel   = new MultipleSelectionModel(_nodeCollection);
            _rowListRenderer  = new RowListRenderer(_nodeCollection, _selectionModel);
            _rowRenderer      = new MockRowRenderer(_columnCollection);

            _incSearcher             = new IncrementalSearcher(_nodeCollection, _rowListRenderer, _selectionModel);
            _incSearcher.RowRenderer = _rowRenderer;
        }
Пример #2
0
 [SetUp] public void SetUp()
 {
     _filterCollection = new JetListViewFilterCollection();
     _nodeCollection   = new JetListViewNodeCollection(_filterCollection);
     _selectionModel   = new MultipleSelectionModel(_nodeCollection);
     _rowListRenderer  = new RowListRenderer(_nodeCollection, _selectionModel);
     _rowListRenderer.ActiveSelection = true;
     _rowRenderer = new MockRowRenderer();
     _rowListRenderer.RowRenderer = _rowRenderer;
     _rowRenderer.RowHeight       = 17;
     _scrollRangeChanges          = 0;
     _rowInvalidates    = new ArrayList();
     _clientRect        = new Rectangle(0, 0, 100, 100);
     _lastRequestScroll = -1;
 }
Пример #3
0
        [SetUp] public void SetUp()
        {
            _nodeCollection  = new JetListViewNodeCollection(null);
            _groupProvider   = new MockGroupProvider();
            _groupCollection = new NodeGroupCollection(_nodeCollection, _groupProvider);

            _selection                   = new MultipleSelectionModel(_nodeCollection);
            _rowListRenderer             = new RowListRenderer(_nodeCollection, _selection);
            _rowRenderer                 = new MockRowRenderer();
            _rowRenderer.RowHeight       = 20;
            _rowListRenderer.RowRenderer = _rowRenderer;

            _groupRenderer = new MockGroupRenderer(10);
            _rowListRenderer.GroupRenderer       = _groupRenderer;
            _rowListRenderer.NodeGroupCollection = _groupCollection;

            _lastEventGroup       = null;
            _lastInvalidateStartY = -1;
        }