Пример #1
0
 protected override void SetOwner(JetListViewColumnCollection value)
 {
     base.SetOwner(value);
     if (OwnerControl != null)
     {
         UpdateDefaultHeight();
         OwnerControl.FontChanged += new EventHandler(HandleOwnerFontChanged);
     }
 }
Пример #2
0
 [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;
 }
Пример #3
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;
        }
Пример #4
0
        [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();
        }
Пример #5
0
 [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;
 }
Пример #6
0
 public MockRowRenderer(JetListViewColumnCollection columnCollection)
 {
     _columnCollection = columnCollection;
 }