예제 #1
0
        private void AddChild(TreeNode parent, BreedVM breed)
        {
            TreeNode node = new TreeNode();

            node.Text = breed.Name;
            node.Name = breed.Id.ToString();
            node.Tag  = breed;
            node.Nodes.Add("");
            parent.Nodes.Add(node);
        }
예제 #2
0
        private void AddParent(BreedVM breed)
        {
            TreeNode node = new TreeNode();

            node.Text = breed.Name;
            node.Name = breed.Id.ToString();
            node.Tag  = breed;
            node.Nodes.Add("");
            tvBreed.Nodes.Add(node);
        }