public void CleanupViews() { if (treeViewRq != null) { splitContainerMain.Panel1.Controls.Remove(treeViewRq); } treeViewRq = new TreeViewReq(this as TreeViewReq.ITreeViewReqCb, imageListReqTree); treeViewRq.Dock = DockStyle.Fill; splitContainerMain.Panel1.Controls.Add(treeViewRq); //this.ResizeRedraw = true; }
public TreePanel(ref TreeViewReq treeView) { this.treeView = treeView; }