ArcGISCompare.frmMappings.refillMappings C# (CSharp) Метод

refillMappings() публичный Метод

public refillMappings ( TreeView theRes ) : void
theRes System.Windows.Forms.TreeView
Результат void
        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);
              }
        }

Usage Example

Пример #1
0
        private void mnuShowMappings_Click(object sender, EventArgs e)
        {
            if (TV.Nodes.Count > 0)
            {
                frmMappings theResults = new frmMappings();

                theResults.refillMappings(TV);

                DialogResult theEnd = theResults.ShowDialog();
            }
        }