public void ResetInspectorBox(object rootobj)
        {
            if (rootobj == null)
            {
                ClearInspectorBox();
                return;
            }
            InsBox.ItemIndex = 0;
            InspectorInfo root = new InspectorInfo(InsBox.Items, rootobj, sidebar);
            root.showValueToString = true;
            this.rootitem = root;
            root.GenerateChildren(GenerateFields, userLevel: UserLevel.Debug);
            ActiveInspectorParent = root;

            foreach (object o in InsBox.Items.ToList())
            {
                InsBox.Items.Remove(o);
            }
            foreach (object o in root.children.ToList())
            {
                InsBox.Items.Add(o);
            }
            InsBox.Refresh();
            if (rootobj is Node)
            {
                editNode = (Node)rootobj;
                lblInspectorAddress.Text = "/" + editNode.ToString();
            }
            else
            {
                lblInspectorAddress.Text = rootobj.GetType().ToString();
            }

            if (OverrideString.Item1)
            {
                lblInspectorAddress.Text = OverrideString.Item2;
                lblInspectorAddress.Height = labelDoubleHeight / 2;
            }
            else
            {
                lblInspectorAddress.Height = labelDoubleHeight;
            }
        }
 public void SetRootInspectorItem(InspectorInfo insItem)
 {
     rootItem = insItem;
     ClearView();
     if (insItem == null) return;
     insItem.GenerateChildren();
     foreach (InspectorInfo i in insItem.children)
     {
         CreateNewItem(i);
     }
 }