public void FillBoundaryTreeNode() { PolyMesh mesh = new PolyMesh(currentMeshFileName); List <string> patchNames = mesh.GetAllPatchNames(); treeNode_boundary.Nodes.Clear(); foreach (string patchName in patchNames) { treeNode_boundary.Nodes.Add(patchName, patchName, 2); } }
private void FillMeshTreeView() { if (this.InvokeRequired) { DgFillMeshTreeView df = new DgFillMeshTreeView(FillMeshTreeView); this.Invoke(df, new object[] { }); } else { PolyMesh mesh = new PolyMesh(fileName); List <string> patchNames = mesh.GetAllPatchNames(); tnRoot.Nodes.Clear(); foreach (string patchName in patchNames) { tnRoot.Nodes.Add(patchName, patchName, 1); } tv_main.ExpandAll(); } }