public PackageExportTreeView(PackageExport packageExport, TreeViewState treeViewState, Rect startRect) { this.m_PackageExport = packageExport; this.m_TreeView = new TreeViewController(this.m_PackageExport, treeViewState); PackageExportTreeViewDataSource data = new PackageExportTreeViewDataSource(this.m_TreeView, this); PackageExportTreeViewGUI gui = new PackageExportTreeViewGUI(this.m_TreeView, this); this.m_TreeView.Init(startRect, data, gui, null); this.m_TreeView.ReloadData(); this.m_TreeView.selectionChangedCallback = (Action<int[]>) Delegate.Combine(this.m_TreeView.selectionChangedCallback, new Action<int[]>(this.SelectionChanged)); gui.itemWasToggled = (Action<PackageExportTreeViewItem>) Delegate.Combine(gui.itemWasToggled, new Action<PackageExportTreeViewItem>(this.ItemWasToggled)); this.ComputeEnabledStateForFolders(); }
public PackageExportTreeView(PackageExport packageExport, TreeViewState treeViewState, Rect startRect) { this.m_PackageExport = packageExport; this.m_TreeView = new TreeViewController(this.m_PackageExport, treeViewState); PackageExportTreeViewDataSource data = new PackageExportTreeViewDataSource(this.m_TreeView, this); PackageExportTreeViewGUI gui = new PackageExportTreeViewGUI(this.m_TreeView, this); this.m_TreeView.Init(startRect, data, gui, null); this.m_TreeView.ReloadData(); this.m_TreeView.selectionChangedCallback = (Action <int[]>)Delegate.Combine(this.m_TreeView.selectionChangedCallback, new Action <int[]>(this.SelectionChanged)); gui.itemWasToggled = (Action <PackageExportTreeViewItem>)Delegate.Combine(gui.itemWasToggled, new Action <PackageExportTreeViewItem>(this.ItemWasToggled)); this.ComputeEnabledStateForFolders(); }
public PackageExportTreeView(PackageExport packageExport, TreeViewState treeViewState, Rect startRect) { m_PackageExport = packageExport; m_TreeView = new TreeViewController(m_PackageExport, treeViewState); var dataSource = new PackageExportTreeViewDataSource(m_TreeView, this); var gui = new PackageExportTreeViewGUI(m_TreeView, this); m_TreeView.Init(startRect, dataSource, gui, null); m_TreeView.ReloadData(); m_TreeView.selectionChangedCallback += SelectionChanged; gui.itemWasToggled += ItemWasToggled; ComputeEnabledStateForFolders(); }