private void SetTreeView()
        {
            IList <MemberInspectorTreeElement> members = null;

            switch (this.mode)
            {
            case Mode.WatchList:
                members = MemberInspectorTreeElement.GenerateFavoritesTree();
                break;

            case Mode.Inspector:
                if (this.hasTarget)
                {
                    members = MemberInspectorTreeElement.GenerateInspectorTree(this.currentTargetInformation);
                }
                else
                {
                    return;
                }
                break;
            }
            //this.favoritesTree = MemberInspectorTreeElement.GenerateFavoritesTree();
            if (this.memberInspector == null)
            {
                this.memberInspector = new MemberInspectorTreeView(this.treeViewState, members);
                //Trace.Script("Created member inspector tree view");
            }
            else
            {
                //Trace.Script($"Set tree view with ({members.Count - 1}) members");
                this.memberInspector.SetTree(members);
            }

            switch (this.mode)
            {
            case Mode.WatchList:
                this.memberInspector.EnableColumn(Column.GameObject);
                this.memberInspector.DisableColumn(Column.Favorite);
                break;

            case Mode.Inspector:
                this.memberInspector.DisableColumn(Column.GameObject);
                this.memberInspector.EnableColumn(Column.Favorite);
                break;
            }
        }