public void refillMappings(TreeView theRes) { lblTitle.Text = "The complete list of Results"; this.Text = "All Detected Results"; tvResults.Nodes.Clear(); for (int i = 0; i < theRes.Nodes.Count; i++) { TreeNode newNode = (TreeNode)theRes.Nodes[i].Clone(); tvResults.Nodes.Add(newNode); } }
private void mnuShowMappings_Click(object sender, EventArgs e) { if (TV.Nodes.Count > 0) { frmMappings theResults = new frmMappings(); theResults.refillMappings(TV); DialogResult theEnd = theResults.ShowDialog(); } }