예제 #1
0
        private void Add(RetrieveFieldsViewAdapter.Node node)
        {
            var added = Adapter.Add(node);

            lstCustom.SelectedItems.Clear();
            foreach (var f in added)
            {
                lstCustom.SelectedItems.Add(f);
            }
        }
예제 #2
0
        private TreeNode Create(RetrieveFieldsViewAdapter.Node n)
        {
            var tn = new TreeNode(n.Text)
            {
                Tag = n
            };

            if (n.HasChildren)
            {
                tn.Nodes.Add(new TempNode());
            }
            return(tn);
        }