public TabEditorForm(TabControl oTabStrip) { InitializeComponent(); _tabStrip = oTabStrip; Tabs = oTabStrip.Items; // 加载已添加的结点 foreach (TabPage oRoot in Tabs) { TreeNode oRootNode = new TreeNode(oRoot.Caption); LoadNodes(oRoot, oRootNode); treeView1.Nodes.Add(oRootNode); } treeView1.HideSelection = false; }