Пример #1
0
 public PackageExportTreeView(PackageExport packageExport, TreeViewState treeViewState, Rect startRect)
 {
     this.m_PackageExport = packageExport;
     this.m_TreeView      = new TreeView((EditorWindow)this.m_PackageExport, treeViewState);
     PackageExportTreeView.PackageExportTreeViewDataSource treeViewDataSource = new PackageExportTreeView.PackageExportTreeViewDataSource(this.m_TreeView, this);
     PackageExportTreeView.PackageExportTreeViewGUI        exportTreeViewGui  = new PackageExportTreeView.PackageExportTreeViewGUI(this.m_TreeView, this);
     this.m_TreeView.Init(startRect, (ITreeViewDataSource)treeViewDataSource, (ITreeViewGUI)exportTreeViewGui, (ITreeViewDragging)null);
     this.m_TreeView.ReloadData();
     this.m_TreeView.selectionChangedCallback += new System.Action <int[]>(this.SelectionChanged);
     exportTreeViewGui.itemWasToggled         += new System.Action <PackageExportTreeView.PackageExportTreeViewItem>(this.ItemWasToggled);
     this.ComputeEnabledStateForFolders();
 }
 public PackageExportTreeView(PackageExport packageExport, TreeViewState treeViewState, Rect startRect)
 {
   this.m_PackageExport = packageExport;
   this.m_TreeView = new TreeView((EditorWindow) this.m_PackageExport, treeViewState);
   PackageExportTreeView.PackageExportTreeViewDataSource treeViewDataSource = new PackageExportTreeView.PackageExportTreeViewDataSource(this.m_TreeView, this);
   PackageExportTreeView.PackageExportTreeViewGUI exportTreeViewGui = new PackageExportTreeView.PackageExportTreeViewGUI(this.m_TreeView, this);
   this.m_TreeView.Init(startRect, (ITreeViewDataSource) treeViewDataSource, (ITreeViewGUI) exportTreeViewGui, (ITreeViewDragging) null);
   this.m_TreeView.ReloadData();
   this.m_TreeView.selectionChangedCallback += new System.Action<int[]>(this.SelectionChanged);
   exportTreeViewGui.itemWasToggled += new System.Action<PackageExportTreeView.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);
            PackageExportTreeView.PackageExportTreeViewDataSource data = new PackageExportTreeView.PackageExportTreeViewDataSource(this.m_TreeView, this);
            PackageExportTreeView.PackageExportTreeViewGUI        packageExportTreeViewGUI = new PackageExportTreeView.PackageExportTreeViewGUI(this.m_TreeView, this);
            this.m_TreeView.Init(startRect, data, packageExportTreeViewGUI, null);
            this.m_TreeView.ReloadData();
            TreeViewController expr_65 = this.m_TreeView;

            expr_65.selectionChangedCallback = (Action <int[]>)Delegate.Combine(expr_65.selectionChangedCallback, new Action <int[]>(this.SelectionChanged));
            PackageExportTreeView.PackageExportTreeViewGUI expr_87 = packageExportTreeViewGUI;
            expr_87.itemWasToggled = (Action <PackageExportTreeView.PackageExportTreeViewItem>)Delegate.Combine(expr_87.itemWasToggled, new Action <PackageExportTreeView.PackageExportTreeViewItem>(this.ItemWasToggled));
            this.ComputeEnabledStateForFolders();
        }