private void InitTreeView(Rect rect)
 {
     this.m_TreeViewState = new TreeViewState();
     this.m_TreeView      = new TreeView(base.editorWindow, this.m_TreeViewState);
     AudioMixerGroupSelector.GroupTreeViewGUI            groupTreeViewGUI            = new AudioMixerGroupSelector.GroupTreeViewGUI(this.m_TreeView);
     AudioMixerGroupSelector.TreeViewDataSourceForMixers treeViewDataSourceForMixers = new AudioMixerGroupSelector.TreeViewDataSourceForMixers(this.m_TreeView, this.m_IgnoreThisController);
     AudioMixerGroupSelector.TreeViewDataSourceForMixers expr_41 = treeViewDataSourceForMixers;
     expr_41.onVisibleRowsChanged = (Action)Delegate.Combine(expr_41.onVisibleRowsChanged, new Action(groupTreeViewGUI.CalculateRowRects));
     AudioMixerGroupSelector.TreeViewDataSourceForMixers expr_63 = treeViewDataSourceForMixers;
     expr_63.onVisibleRowsChanged = (Action)Delegate.Combine(expr_63.onVisibleRowsChanged, new Action(this.ResizeWindow));
     this.m_TreeView.deselectOnUnhandledMouseDown = true;
     this.m_TreeView.Init(rect, treeViewDataSourceForMixers, groupTreeViewGUI, null);
     this.m_TreeView.ReloadData();
     this.m_TreeView.selectionChangedCallback  = new Action <int[]>(this.OnItemSelectionChanged);
     this.m_TreeView.itemDoubleClickedCallback = new Action <int>(this.OnItemDoubleClicked);
     this.m_TreeView.SetSelection(new int[]
     {
         (!(this.m_OriginalSelection != null)) ? 0 : this.m_OriginalSelection.GetInstanceID()
     }, true);
 }
 private AudioMixerGroupController GetGroupByID(int id)
 {
     AudioMixerGroupSelector.TreeViewDataSourceForMixers treeViewDataSourceForMixers = this.m_TreeView.data as AudioMixerGroupSelector.TreeViewDataSourceForMixers;
     return(treeViewDataSourceForMixers.GetGroup(id));
 }
		private void InitTreeView(Rect rect)
		{
			this.m_TreeViewState = new TreeViewState();
			this.m_TreeView = new TreeView(base.editorWindow, this.m_TreeViewState);
			AudioMixerGroupSelector.GroupTreeViewGUI groupTreeViewGUI = new AudioMixerGroupSelector.GroupTreeViewGUI(this.m_TreeView);
			AudioMixerGroupSelector.TreeViewDataSourceForMixers treeViewDataSourceForMixers = new AudioMixerGroupSelector.TreeViewDataSourceForMixers(this.m_TreeView, this.m_IgnoreThisController);
			AudioMixerGroupSelector.TreeViewDataSourceForMixers expr_41 = treeViewDataSourceForMixers;
			expr_41.onVisibleRowsChanged = (Action)Delegate.Combine(expr_41.onVisibleRowsChanged, new Action(groupTreeViewGUI.CalculateRowRects));
			AudioMixerGroupSelector.TreeViewDataSourceForMixers expr_63 = treeViewDataSourceForMixers;
			expr_63.onVisibleRowsChanged = (Action)Delegate.Combine(expr_63.onVisibleRowsChanged, new Action(this.ResizeWindow));
			this.m_TreeView.deselectOnUnhandledMouseDown = true;
			this.m_TreeView.Init(rect, treeViewDataSourceForMixers, groupTreeViewGUI, null);
			this.m_TreeView.ReloadData();
			this.m_TreeView.selectionChangedCallback = new Action<int[]>(this.OnItemSelectionChanged);
			this.m_TreeView.itemDoubleClickedCallback = new Action<int>(this.OnItemDoubleClicked);
			this.m_TreeView.SetSelection(new int[]
			{
				(!(this.m_OriginalSelection != null)) ? 0 : this.m_OriginalSelection.GetInstanceID()
			}, true);
		}