protected override void SetOwner(JetListViewColumnCollection value) { base.SetOwner(value); if (OwnerControl != null) { UpdateDefaultHeight(); OwnerControl.FontChanged += new EventHandler(HandleOwnerFontChanged); } }
[SetUp] public void SetUp() { _nodeCollection = new JetListViewNodeCollection(null); _columnCollection = new JetListViewColumnCollection(); _rowRenderer = new SingleLineRowRenderer(_columnCollection, _nodeCollection); _rowRenderer.MinColumnWidth = 5; _controlPainter = new MockControlPainter(); _columnCollection.ControlPainter = _controlPainter; _scrollRangeChanges = 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; }
[SetUp] public void SetUp() { _schemeProvider = new MockColumnSchemeProvider(); _defaultScheme = _schemeProvider.DefaultScheme; _columnCollection = new JetListViewColumnCollection(); _renderer = new MultiLineRowRenderer(_columnCollection); _renderer.ColumnSchemeProvider = _schemeProvider; _renderer.VisibleWidth = 100; _renderer.RowHeight = 20; _nodeCollection = new JetListViewNodeCollection(null); _testNode = _nodeCollection.Add("Test"); _column1 = new MockJetListViewColumn(); _column2 = new MockJetListViewColumn(); }
[SetUp] public void SetUp() { _nodeCollection = new JetListViewNodeCollection(null); _columnCollection = new JetListViewColumnCollection(); _baseRowRenderer = new SingleLineRowRenderer(_columnCollection, _nodeCollection); _baseColumn = new MockJetListViewColumn(); _baseColumn.Width = 100; _columnCollection.Add(_baseColumn); _baseRowRenderer.RowHeight = 17; _previewColumn = new MockJetListViewColumn(); _previewColumn.AutoPreviewHeight = 10; _rowRenderer = new AutoPreviewRowRenderer(_baseRowRenderer, _previewColumn, _columnCollection); _rowRenderer.VisibleWidth = 100; _controlPainter = new MockControlPainter(); _columnCollection.ControlPainter = _controlPainter; }
public MockRowRenderer(JetListViewColumnCollection columnCollection) { _columnCollection = columnCollection; }