public TreeViewTestWithCustomHeight(EditorWindow editorWindow, BackendData backendData, Rect rect)
 {
   this.m_BackendData = backendData;
   TreeViewState treeViewState = new TreeViewState();
   this.m_TreeView = new TreeView(editorWindow, treeViewState);
   TestGUICustomItemHeights customItemHeights = new TestGUICustomItemHeights(this.m_TreeView);
   TestDragging testDragging = new TestDragging(this.m_TreeView, this.m_BackendData);
   TestDataSource testDataSource1 = new TestDataSource(this.m_TreeView, this.m_BackendData);
   TestDataSource testDataSource2 = testDataSource1;
   System.Action action = testDataSource2.onVisibleRowsChanged + new System.Action(((TreeViewGUIWithCustomItemsHeights) customItemHeights).CalculateRowRects);
   testDataSource2.onVisibleRowsChanged = action;
   this.m_TreeView.Init(rect, (ITreeViewDataSource) testDataSource1, (ITreeViewGUI) customItemHeights, (ITreeViewDragging) testDragging);
   testDataSource1.SetExpanded(testDataSource1.root, true);
 }
        public TreeViewTestWithCustomHeight(EditorWindow editorWindow, BackendData backendData, Rect rect)
        {
            this.m_BackendData = backendData;
            TreeViewState treeViewState = new TreeViewState();

            this.m_TreeView = new TreeView(editorWindow, treeViewState);
            TestGUICustomItemHeights testGUICustomItemHeights = new TestGUICustomItemHeights(this.m_TreeView);
            TestDragging             dragging       = new TestDragging(this.m_TreeView, this.m_BackendData);
            TestDataSource           testDataSource = new TestDataSource(this.m_TreeView, this.m_BackendData);
            TestDataSource           expr_51        = testDataSource;

            expr_51.onVisibleRowsChanged = (Action)Delegate.Combine(expr_51.onVisibleRowsChanged, new Action(testGUICustomItemHeights.CalculateRowRects));
            this.m_TreeView.Init(rect, testDataSource, testGUICustomItemHeights, dragging);
            testDataSource.SetExpanded(testDataSource.root, true);
        }
        public TreeViewTestWithCustomHeight(EditorWindow editorWindow, BackendData backendData, Rect rect)
        {
            this.m_BackendData = backendData;
            TreeViewState treeViewState = new TreeViewState();

            this.m_TreeView = new TreeView(editorWindow, treeViewState);
            TestGUICustomItemHeights customItemHeights = new TestGUICustomItemHeights(this.m_TreeView);
            TestDragging             testDragging      = new TestDragging(this.m_TreeView, this.m_BackendData);
            TestDataSource           testDataSource1   = new TestDataSource(this.m_TreeView, this.m_BackendData);
            TestDataSource           testDataSource2   = testDataSource1;

            System.Action action = testDataSource2.onVisibleRowsChanged + new System.Action(((TreeViewGUIWithCustomItemsHeights)customItemHeights).CalculateRowRects);
            testDataSource2.onVisibleRowsChanged = action;
            this.m_TreeView.Init(rect, (ITreeViewDataSource)testDataSource1, (ITreeViewGUI)customItemHeights, (ITreeViewDragging)testDragging);
            testDataSource1.SetExpanded(testDataSource1.root, true);
        }
        public TreeViewTestWithCustomHeight(EditorWindow editorWindow, BackendData backendData, Rect rect)
        {
            TestDataSource source;

            this.m_BackendData = backendData;
            TreeViewState treeViewState = new TreeViewState();

            this.m_TreeView = new TreeView(editorWindow, treeViewState);
            TestGUICustomItemHeights gui      = new TestGUICustomItemHeights(this.m_TreeView);
            TestDragging             dragging = new TestDragging(this.m_TreeView, this.m_BackendData);

            source = new TestDataSource(this.m_TreeView, this.m_BackendData)
            {
                onVisibleRowsChanged = (Action)Delegate.Combine(source.onVisibleRowsChanged, new Action(gui.CalculateRowRects))
            };
            this.m_TreeView.Init(rect, source, gui, dragging);
            source.SetExpanded(source.root, true);
        }